Reorg complete, jvm tests pass
This commit is contained in:
21
src/kotlin/src/test/kotlin/DocumentConfigTest.kt
Normal file
21
src/kotlin/src/test/kotlin/DocumentConfigTest.kt
Normal file
@@ -0,0 +1,21 @@
|
||||
package solutions.bitbadger.documents.kotlin
|
||||
|
||||
import org.junit.jupiter.api.DisplayName
|
||||
import org.junit.jupiter.api.Test
|
||||
import kotlin.test.assertFalse
|
||||
import kotlin.test.assertTrue
|
||||
|
||||
/**
|
||||
* Unit tests for the `Configuration` object
|
||||
*/
|
||||
@DisplayName("Kotlin | DocumentConfig")
|
||||
class DocumentConfigTest {
|
||||
|
||||
@Test
|
||||
@DisplayName("Default JSON options are as expected")
|
||||
fun defaultJsonOptions() {
|
||||
assertTrue(DocumentConfig.options.configuration.encodeDefaults, "Encode Defaults should have been set")
|
||||
assertFalse(DocumentConfig.options.configuration.explicitNulls, "Explicit Nulls should not have been set")
|
||||
assertTrue(DocumentConfig.options.configuration.coerceInputValues, "Coerce Input Values should have been set")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user