File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer
9
9
import com.fasterxml.jackson.module.kotlin.KotlinModule
10
10
import com.fasterxml.jackson.module.kotlin.jacksonMapperBuilder
11
11
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
12
+ import com.fasterxml.jackson.module.kotlin.test.expectFailure
13
+ import org.junit.ComparisonFailure
12
14
import org.junit.Ignore
13
15
import org.junit.Test
14
16
import kotlin.test.assertEquals
@@ -70,7 +72,6 @@ class Github464 {
70
72
)
71
73
}
72
74
73
- @Ignore
74
75
@Test
75
76
fun test () {
76
77
val zeroValue = ValueClass (0 )
@@ -88,7 +89,8 @@ class Github464 {
88
89
waldo = mapOf (WrapperClass (zeroValue) to WrapperClass (zeroValue), WrapperClass (oneValue) to null )
89
90
)
90
91
91
- assertEquals("""
92
+ expectFailure<ComparisonFailure >(" GitHub #469 has been fixed!" ) {
93
+ assertEquals("""
92
94
{
93
95
"foo" : 0,
94
96
"bar" : null,
@@ -111,8 +113,9 @@ class Github464 {
111
113
}
112
114
}
113
115
""" .trimIndent(),
114
- writer.writeValueAsString(target)
115
- )
116
+ writer.writeValueAsString(target)
117
+ )
118
+ }
116
119
}
117
120
}
118
121
You can’t perform that action at this time.
0 commit comments