Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Jan 10, 2023
1 parent b1d0761 commit 3e8055f
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.fasterxml.jackson.module.kotlin._ported.test.github.failing

import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
import com.fasterxml.jackson.module.kotlin._ported.test.expectFailure
import com.fasterxml.jackson.module.kotlin.kotlinModule
import com.fasterxml.jackson.module.kotlin.readValue
import org.junit.jupiter.api.Assertions.assertEquals
Expand All @@ -21,10 +19,8 @@ class OwnerRequestTest {

@Test
fun testDeserHit340() {
expectFailure<UnrecognizedPropertyException>("GitHub #340 has been fixed!") {
val value: IsField = jackson.readValue(json)
assertEquals("Got a foo", value.foo)
}
val value: IsField = jackson.readValue(json)
assertEquals("Got a foo", value.foo)
}

@Test
Expand Down

0 comments on commit 3e8055f

Please sign in to comment.