Skip to content

Commit 30691b4

Browse files
committed
Expect failure rather than ignoring test
1 parent 954f57b commit 30691b4

File tree

1 file changed

+7
-4
lines changed
  • src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github

1 file changed

+7
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github464.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer
99
import com.fasterxml.jackson.module.kotlin.KotlinModule
1010
import com.fasterxml.jackson.module.kotlin.jacksonMapperBuilder
1111
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
12+
import com.fasterxml.jackson.module.kotlin.test.expectFailure
13+
import org.junit.ComparisonFailure
1214
import org.junit.Ignore
1315
import org.junit.Test
1416
import kotlin.test.assertEquals
@@ -70,7 +72,6 @@ class Github464 {
7072
)
7173
}
7274

73-
@Ignore
7475
@Test
7576
fun test() {
7677
val zeroValue = ValueClass(0)
@@ -88,7 +89,8 @@ class Github464 {
8889
waldo = mapOf(WrapperClass(zeroValue) to WrapperClass(zeroValue), WrapperClass(oneValue) to null)
8990
)
9091

91-
assertEquals("""
92+
expectFailure<ComparisonFailure>("GitHub #469 has been fixed!") {
93+
assertEquals("""
9294
{
9395
"foo" : 0,
9496
"bar" : null,
@@ -111,8 +113,9 @@ class Github464 {
111113
}
112114
}
113115
""".trimIndent(),
114-
writer.writeValueAsString(target)
115-
)
116+
writer.writeValueAsString(target)
117+
)
118+
}
116119
}
117120
}
118121

0 commit comments

Comments
 (0)