Fix test
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 13 Oct 2017 06:15:17 +0000 (08:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 13 Oct 2017 06:15:17 +0000 (08:15 +0200)
src/test/kotlin/net/pterodactylus/sone/template/ParserFilterTest.kt

index ac2886a..00f3d04 100644 (file)
@@ -63,7 +63,7 @@ class ParserFilterTest {
                parameters.put("sone", soneOrSoneId)
                filter.format(templateContext, "text", parameters)
                val context = forClass(SoneTextParserContext::class.java)
-               verify(soneTextParser).parse(eq<String>("text"), context.capture())
+               verify(soneTextParser).parse(eq<String>("text") ?: "", context.capture())
                assertThat(context.value.postingSone, `is`(sone))
        }