Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test32() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst32(), defaultMapper.readValue<Dst32>("{}"))
// 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<Dst32>("{}"))
}

data class Dst33(
Expand Down Expand Up @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test64() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst64(), defaultMapper.readValue<Dst64>("{}"))
// 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<Dst64>("{}"))
}

data class Dst65(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test32() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst32(), defaultMapper.readValue<Dst32>("{}"))
// 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<Dst32>("{}"))
}

data class Dst33(
Expand Down Expand Up @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test64() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst64(), defaultMapper.readValue<Dst64>("{}"))
// 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<Dst64>("{}"))
}

data class Dst65(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test32() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst32(), defaultMapper.readValue<Dst32>("{}"))
// 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<Dst32>("{}"))
}

data class Dst33(
Expand Down Expand Up @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test64() {
assertThrows<KotlinReflectionInternalError> {
assertEquals(Dst64(), defaultMapper.readValue<Dst64>("{}"))
// 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<Dst64>("{}"))
}

data class Dst65(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -53,12 +51,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test32() {
assertThrows<KotlinReflectionInternalError> {
Assertions.assertEquals(Dst32(), defaultMapper.readValue<Dst32>("{}"))
// 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<Dst32>("{}"))
}

data class Dst33(
Expand Down Expand Up @@ -171,12 +164,7 @@ class DeserializeByConstructorWithDefaultArgumentsTest {

@Test
fun test64() {
assertThrows<KotlinReflectionInternalError> {
Assertions.assertEquals(Dst64(), defaultMapper.readValue<Dst64>("{}"))
// 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<Dst64>("{}"))
}

data class Dst65(
Expand Down