Skip to content

Commit fcf4904

Browse files
committed
GitHub #196 is fixed
1 parent d3210f3 commit fcf4904

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.fasterxml.jackson.module.kotlin.test.github
2+
3+
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
4+
import com.fasterxml.jackson.module.kotlin.readValue
5+
import org.junit.Test
6+
import kotlin.test.assertSame
7+
8+
/**
9+
* An empty object should be deserialized as *the* Unit instance
10+
*/
11+
class TestGithub196 {
12+
@Test
13+
fun testUnitSingletonDeserialization() {
14+
assertSame(jacksonObjectMapper().readValue("{}"), Unit)
15+
}
16+
}

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing/Github196.kt

-17
This file was deleted.

0 commit comments

Comments
 (0)