Skip to content

Commit 7ced806

Browse files
committed
Fix tests
1 parent ff01676 commit 7ced806

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import com.fasterxml.jackson.module.kotlin.KotlinFeature.NullToEmptyCollection
77
import com.fasterxml.jackson.module.kotlin.KotlinFeature.NullToEmptyMap
88
import com.fasterxml.jackson.module.kotlin.KotlinFeature.SingletonSupport
99
import com.fasterxml.jackson.module.kotlin.KotlinFeature.StrictNullChecks
10-
import com.fasterxml.jackson.module.kotlin.SingletonSupport.CANONICALIZE
1110
import org.junit.Assert.assertNotNull
1211
import org.junit.Test
1312
import kotlin.test.assertEquals
@@ -44,7 +43,7 @@ class DslTest {
4443
assertTrue(module.nullToEmptyCollection)
4544
assertTrue(module.nullToEmptyMap)
4645
assertTrue(module.nullIsSameAsDefault)
47-
assertEquals(module.singletonSupport, CANONICALIZE)
46+
assertTrue(module.enabledSingletonSupport)
4847
assertTrue(module.strictNullChecks)
4948
}
5049

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class KotlinModuleTest {
1717
assertFalse(module.nullToEmptyCollection)
1818
assertFalse(module.nullToEmptyMap)
1919
assertFalse(module.nullIsSameAsDefault)
20-
assertEquals(SingletonSupport.DISABLED, module.singletonSupport)
2120
assertFalse(module.enabledSingletonSupport)
2221
assertFalse(module.strictNullChecks)
2322
assertFalse(module.kotlinPropertyNameAsImplicitName)
@@ -41,7 +40,6 @@ class KotlinModuleTest {
4140
assertTrue(module.nullToEmptyCollection)
4241
assertTrue(module.nullToEmptyMap)
4342
assertTrue(module.nullIsSameAsDefault)
44-
assertEquals(SingletonSupport.CANONICALIZE, module.singletonSupport)
4543
assertTrue(module.enabledSingletonSupport)
4644
assertTrue(module.strictNullChecks)
4745
assertTrue(module.kotlinPropertyNameAsImplicitName)
@@ -81,7 +79,7 @@ class KotlinModuleTest {
8179
enable(SingletonSupport)
8280
}.build()
8381

84-
assertEquals(SingletonSupport.CANONICALIZE, module.singletonSupport)
82+
assertTrue(module.enabledSingletonSupport)
8583
}
8684

8785
@Test
@@ -112,7 +110,7 @@ class KotlinModuleTest {
112110
assertTrue(deserialized.nullToEmptyCollection)
113111
assertTrue(deserialized.nullToEmptyMap)
114112
assertTrue(deserialized.nullIsSameAsDefault)
115-
assertEquals(SingletonSupport.CANONICALIZE, deserialized.singletonSupport)
113+
assertTrue(deserialized.enabledSingletonSupport)
116114
assertTrue(deserialized.strictNullChecks)
117115
}
118116

0 commit comments

Comments
 (0)