diff --git a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nonNullObject/DeserializeByConstructorWithDefaultArgumentsTest.kt b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nonNullObject/DeserializeByConstructorWithDefaultArgumentsTest.kt index 21745644..b86c898f 100644 --- a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nonNullObject/DeserializeByConstructorWithDefaultArgumentsTest.kt +++ b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nonNullObject/DeserializeByConstructorWithDefaultArgumentsTest.kt @@ -6,8 +6,6 @@ import com.fasterxml.jackson.module.kotlin.kogeraIntegration.deser.valueClass.No import com.fasterxml.jackson.module.kotlin.readValue import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test -import org.junit.jupiter.api.assertThrows -import kotlin.reflect.jvm.internal.KotlinReflectionInternalError /** * Up to argument size 32 there is one mask argument for the default argument, @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test32() { - assertThrows { - assertEquals(Dst32(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst32(), defaultMapper.readValue("{}")) } data class Dst33( @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test64() { - assertThrows { - assertEquals(Dst64(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst64(), defaultMapper.readValue("{}")) } data class Dst65( diff --git a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nullableObject/DeserializeByConstructorWithDefaultArgumentsTest.kt b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nullableObject/DeserializeByConstructorWithDefaultArgumentsTest.kt index 588e987f..52957cff 100644 --- a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nullableObject/DeserializeByConstructorWithDefaultArgumentsTest.kt +++ b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/nullableObject/DeserializeByConstructorWithDefaultArgumentsTest.kt @@ -6,8 +6,6 @@ import com.fasterxml.jackson.module.kotlin.kogeraIntegration.deser.valueClass.Nu import com.fasterxml.jackson.module.kotlin.readValue import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test -import org.junit.jupiter.api.assertThrows -import kotlin.reflect.jvm.internal.KotlinReflectionInternalError /** * Up to argument size 32 there is one mask argument for the default argument, @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test32() { - assertThrows { - assertEquals(Dst32(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst32(), defaultMapper.readValue("{}")) } data class Dst33( @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test64() { - assertThrows { - assertEquals(Dst64(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst64(), defaultMapper.readValue("{}")) } data class Dst65( diff --git a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/primitive/DeserializeByConstructorWithDefaultArgumentsTest.kt b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/primitive/DeserializeByConstructorWithDefaultArgumentsTest.kt index fcb9cc67..7070a686 100644 --- a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/primitive/DeserializeByConstructorWithDefaultArgumentsTest.kt +++ b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/primitive/DeserializeByConstructorWithDefaultArgumentsTest.kt @@ -6,8 +6,6 @@ import com.fasterxml.jackson.module.kotlin.kogeraIntegration.deser.valueClass.Pr import com.fasterxml.jackson.module.kotlin.readValue import org.junit.jupiter.api.Assertions.assertEquals import org.junit.jupiter.api.Test -import org.junit.jupiter.api.assertThrows -import kotlin.reflect.jvm.internal.KotlinReflectionInternalError /** * Up to argument size 32 there is one mask argument for the default argument, @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test32() { - assertThrows { - assertEquals(Dst32(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst32(), defaultMapper.readValue("{}")) } data class Dst33( @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test64() { - assertThrows { - assertEquals(Dst64(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + assertEquals(Dst64(), defaultMapper.readValue("{}")) } data class Dst65( diff --git a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/twoUnitPrimitive/DeserializeByConstructorWithDefaultArgumentsTest.kt b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/twoUnitPrimitive/DeserializeByConstructorWithDefaultArgumentsTest.kt index 624b8a3e..9a9b779b 100644 --- a/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/twoUnitPrimitive/DeserializeByConstructorWithDefaultArgumentsTest.kt +++ b/src/test/kotlin/com/fasterxml/jackson/module/kotlin/kogeraIntegration/deser/valueClass/parameterSize/twoUnitPrimitive/DeserializeByConstructorWithDefaultArgumentsTest.kt @@ -6,8 +6,6 @@ import com.fasterxml.jackson.module.kotlin.kogeraIntegration.deser.valueClass.Tw import com.fasterxml.jackson.module.kotlin.readValue import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test -import org.junit.jupiter.api.assertThrows -import kotlin.reflect.jvm.internal.KotlinReflectionInternalError /** * Up to argument size 32 there is one mask argument for the default argument, @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test32() { - assertThrows { - Assertions.assertEquals(Dst32(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + Assertions.assertEquals(Dst32(), defaultMapper.readValue("{}")) } data class Dst33( @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest { @Test fun test64() { - assertThrows { - Assertions.assertEquals(Dst64(), defaultMapper.readValue("{}")) - // TODO: #762 is resolved after Kotlin 2.0, so the reason why throw is done is to make CI with Kotlin 2.0 succeed. - // After upgrading to Kotlin 2.0, remove exception-related descriptions. - if (KotlinVersion.CURRENT.major >= 2) throw KotlinReflectionInternalError("") - } + Assertions.assertEquals(Dst64(), defaultMapper.readValue("{}")) } data class Dst65(