Skip to content

Commit 93f230f

Browse files
committed
Migrate to JUnit5 notation
1 parent 5a199ee commit 93f230f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/NullableObjectEdgeCases.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import com.fasterxml.jackson.module.kotlin.WrapsNullableValueClassDeserializer
1010
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
1111
import com.fasterxml.jackson.module.kotlin.readValue
1212
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError
13-
import org.junit.Assert.assertEquals
14-
import org.junit.Assert.assertThrows
13+
import org.junit.jupiter.api.Assertions.assertEquals
1514
import org.junit.jupiter.api.Test
15+
import org.junit.jupiter.api.assertThrows
1616

1717
class NullableObjectEdgeCases {
1818
@JvmInline
@@ -61,7 +61,7 @@ class NullableObjectEdgeCases {
6161
// There is a problem with #51, so it is a failing test.
6262
@Test
6363
fun `Nulls_SKIP works`() {
64-
assertThrows("#761(KT-57357) fixed", KotlinReflectionInternalError::class.java) {
64+
assertThrows<KotlinReflectionInternalError>("#761(KT-57357) fixed") {
6565
val result = jacksonObjectMapper().readValue<NullsSkip>("""{"nn":null,"n":null}""")
6666
assertEquals(NullValue(VC("skip"), VC("skip")), result)
6767
}

0 commit comments

Comments
 (0)