Skip to content

Commit

Permalink
Add test case for unsupported root array without recordPath (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Sep 3, 2021
1 parent 7b978b6 commit 88d941f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ public void testShouldProcessRecordsInArrayRoot() {
ordered.verify(receiver).endRecord();
}

@Test(expected=MetafactureException.class)
public void testRootArrayNoRecordPath() {
jsonDecoder.process(
"[" + "{\"lit\": \"record 1\"}," +
"{\"lit\": \"record 2\"}" + "]");
}

@Test
public void testShouldProcessMultipleRecords() {
jsonDecoder.process("{\"lit\": \"record 1\"}");
Expand Down

0 comments on commit 88d941f

Please sign in to comment.