Skip to content

Commit e99ea39

Browse files
committed
Modify fixed test case and move package
1 parent 80d289f commit e99ea39

File tree

1 file changed

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

1 file changed

+4
-7
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing/Github340.kt renamed to src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/Github340.kt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
package com.fasterxml.jackson.module.kotlin.test.github.failing
1+
package com.fasterxml.jackson.module.kotlin.test.github
22

33
import com.fasterxml.jackson.databind.ObjectMapper
4-
import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
54
import com.fasterxml.jackson.module.kotlin.kotlinModule
65
import com.fasterxml.jackson.module.kotlin.readValue
7-
import com.fasterxml.jackson.module.kotlin.test.expectFailure
86
import org.junit.Test
97
import kotlin.test.assertEquals
108

@@ -21,10 +19,9 @@ class OwnerRequestTest {
2119

2220
@Test
2321
fun testDeserHit340() {
24-
expectFailure<UnrecognizedPropertyException>("GitHub #340 has been fixed!") {
25-
val value: IsField = jackson.readValue(json)
26-
assertEquals("Got a foo", value.foo)
27-
}
22+
val value: IsField = jackson.readValue(json)
23+
// Fixed
24+
assertEquals("Got a foo", value.foo)
2825
}
2926

3027
@Test

0 commit comments

Comments
 (0)