Let status page give out information about loaded elements
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / utils / JsonTest.kt
index ff741c1..abf391d 100644 (file)
@@ -31,4 +31,10 @@ class JsonTest {
                assertThat(arrayNode.toString(), equalTo("[{\"foo\":\"bar\"},{\"baz\":\"quo\"}]"))
        }
 
                assertThat(arrayNode.toString(), equalTo("[{\"foo\":\"bar\"},{\"baz\":\"quo\"}]"))
        }
 
+       @Test
+       fun `array is created correctly for strings`() {
+           val arrayNode = jsonArray("foo", "bar", "baz")
+               assertThat(arrayNode.toString(), equalTo("[\"foo\",\"bar\",\"baz\"]"))
+       }
+
 }
 }