We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b978b6 commit 88d941fCopy full SHA for 88d941f
metafacture-json/src/test/java/org/metafacture/json/JsonDecoderTest.java
@@ -183,6 +183,13 @@ public void testShouldProcessRecordsInArrayRoot() {
183
ordered.verify(receiver).endRecord();
184
}
185
186
+ @Test(expected=MetafactureException.class)
187
+ public void testRootArrayNoRecordPath() {
188
+ jsonDecoder.process(
189
+ "[" + "{\"lit\": \"record 1\"}," +
190
+ "{\"lit\": \"record 2\"}" + "]");
191
+ }
192
+
193
@Test
194
public void testShouldProcessMultipleRecords() {
195
jsonDecoder.process("{\"lit\": \"record 1\"}");
0 commit comments