Skip to content

Commit

Permalink
kotlin: fix style in test
Browse files Browse the repository at this point in the history
  • Loading branch information
zml2008 committed Oct 3, 2020
1 parent f5d5836 commit 962e636
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ class ObjectMappingTest {

@Test
fun `collections are initialized implicitly`() {
val node = CommentedConfigurationNode.root(ConfigurationOptions.defaults()
val node = CommentedConfigurationNode.root(
ConfigurationOptions.defaults()
.withImplicitInitialization(true)
.withSerializers { it.registerAnnotatedObjects(objectMapperFactory()) })
.withSerializers { it.registerAnnotatedObjects(objectMapperFactory()) }
)

val tester = objectMapper<ImplicitTest>().load(node)

Expand Down

0 comments on commit 962e636

Please sign in to comment.