11package io.github.projectmapk.jackson.module.kogera.zPorted.test.github
22
33import com.fasterxml.jackson.databind.JsonMappingException
4- import com.fasterxml. jackson.databind.exc.InvalidNullException
4+ import io.github.projectmapk. jackson.module.kogera.KotlinInvalidNullException
55import io.github.projectmapk.jackson.module.kogera.defaultMapper
66import io.github.projectmapk.jackson.module.kogera.readValue
77import org.junit.jupiter.api.Assertions.assertEquals
@@ -22,8 +22,8 @@ private class TestGithub32 {
2222 }
2323
2424 @Test fun `missing mandatory data class constructor param` () {
25- val thrown = assertThrows<InvalidNullException >(
26- " MissingKotlinParameterException with missing `firstName` parameter"
25+ val thrown = assertThrows<KotlinInvalidNullException >(
26+ " KotlinInvalidNullException with missing `firstName` parameter"
2727 ) {
2828 defaultMapper.readValue<Person >(
2929 """
@@ -40,7 +40,7 @@ private class TestGithub32 {
4040 }
4141
4242 @Test fun `null mandatory data class constructor param` () {
43- val thrown = assertThrows<InvalidNullException > {
43+ val thrown = assertThrows<KotlinInvalidNullException > {
4444 defaultMapper.readValue<Person >(
4545 """
4646 {
@@ -57,7 +57,7 @@ private class TestGithub32 {
5757 }
5858
5959 @Test fun `missing mandatory constructor param - nested in class with default constructor` () {
60- val thrown = assertThrows<InvalidNullException > {
60+ val thrown = assertThrows<KotlinInvalidNullException > {
6161 defaultMapper.readValue<WrapperWithDefaultContructor >(
6262 """
6363 {
@@ -75,7 +75,7 @@ private class TestGithub32 {
7575 }
7676
7777 @Test fun `missing mandatory constructor param - nested in class with single arg constructor` () {
78- val thrown = assertThrows<InvalidNullException > {
78+ val thrown = assertThrows<KotlinInvalidNullException > {
7979 defaultMapper.readValue<WrapperWithArgsContructor >(
8080 """
8181 {
@@ -93,7 +93,7 @@ private class TestGithub32 {
9393 }
9494
9595 @Test fun `missing mandatory constructor param - nested in class with List arg constructor` () {
96- val thrown = assertThrows<InvalidNullException > {
96+ val thrown = assertThrows<KotlinInvalidNullException > {
9797 defaultMapper.readValue<Crowd >(
9898 """
9999 {
0 commit comments