We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac3fd32 commit 8e8966dCopy full SHA for 8e8966d
1 file changed
src/test/java/edu/harvard/iq/dataverse/util/json/JsonParserTest.java
@@ -909,5 +909,13 @@ public void testGuestbookResponse() throws JsonParseException {
909
System.out.println(e.getMessage());
910
assertTrue(e.getMessage().contains("Guestbook Response entry is required but not present"));
911
}
912
+ // Test missing "answers" empty array
913
+ try {
914
+ jsonObj = JsonUtil.getJsonObject("{\"answers\" : []}");
915
+ gbr = sut.parseGuestbookResponse(jsonObj, guestbookResponse);
916
+ } catch (JsonParseException e) {
917
+ System.out.println(e.getMessage());
918
+ assertTrue(e.getMessage().contains("Guestbook Response entry is required but not present"));
919
+ }
920
921
0 commit comments