Skip to content

Commit bcf68c9

Browse files
committed
Fix test definition
1 parent 24e6be9 commit bcf68c9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/UnsignedNumbersOnKeyTest.kt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.core.exc.InputCoercionException
44
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
55
import com.fasterxml.jackson.module.kotlin.readValue
66
import org.junit.jupiter.api.Assertions.assertThrows
7+
import org.junit.jupiter.api.Nested
78
import org.junit.jupiter.api.Test
89
import java.math.BigInteger
910
import kotlin.test.assertEquals
@@ -13,7 +14,8 @@ internal class UnsignedNumbersOnKeyTest {
1314
val MAPPER = jacksonObjectMapper()
1415
}
1516

16-
class ForUByte {
17+
@Nested
18+
inner class ForUByte {
1719
private fun makeSrc(v: Int): String = MAPPER.writeValueAsString(mapOf(v to 0))
1820

1921
@Test
@@ -37,7 +39,8 @@ internal class UnsignedNumbersOnKeyTest {
3739
}
3840
}
3941

40-
class ForUShort {
42+
@Nested
43+
inner class ForUShort {
4144
private fun makeSrc(v: Int): String = MAPPER.writeValueAsString(mapOf(v to 0))
4245

4346
@Test
@@ -61,7 +64,8 @@ internal class UnsignedNumbersOnKeyTest {
6164
}
6265
}
6366

64-
class ForUInt {
67+
@Nested
68+
inner class ForUInt {
6569
private fun makeSrc(v: Long): String = MAPPER.writeValueAsString(mapOf(v to 0))
6670

6771
@Test
@@ -85,7 +89,8 @@ internal class UnsignedNumbersOnKeyTest {
8589
}
8690
}
8791

88-
class ForULong {
92+
@Nested
93+
inner class ForULong {
8994
private fun makeSrc(v: BigInteger): String = MAPPER.writeValueAsString(mapOf(v to 0))
9095

9196
@Test

0 commit comments

Comments
 (0)