Skip to content

Commit

Permalink
Merge branch 'develop' into 10519-dataset-types #10519
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Nov 5, 2024
2 parents 264d648 + 6a00ce5 commit 1b45992
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,17 @@ public void parseDataverseDTO() throws JsonParseException {
try (FileReader reader = new FileReader("doc/sphinx-guides/source/_static/api/dataverse-complete.json")) {
dvJson = Json.createReader(reader).readObject();
DataverseDTO actual = sut.parseDataverseDTO(dvJson);
List<DataverseContact> actualDataverseContacts = actual.getDataverseContacts();
assertEquals("Scientific Research", actual.getName());
assertEquals("science", actual.getAlias());
assertEquals("Scientific Research University", actual.getAffiliation());
assertEquals("We do all the science.", actual.getDescription());
assertEquals("LABORATORY", actual.getDataverseType().toString());
assertEquals(2, actual.getDataverseContacts().size());
assertEquals("[email protected],[email protected]", actual.getDataverseContacts().get(0).getContactEmail());
assertEquals(0, actual.getDataverseContacts().get(0).getDisplayOrder());
assertEquals(1, actual.getDataverseContacts().get(1).getDisplayOrder());
assertEquals(2, actualDataverseContacts.size());
assertEquals("[email protected]", actualDataverseContacts.get(0).getContactEmail());
assertEquals("[email protected]", actualDataverseContacts.get(1).getContactEmail());
assertEquals(0, actualDataverseContacts.get(0).getDisplayOrder());
assertEquals(1, actualDataverseContacts.get(1).getDisplayOrder());
} catch (IOException ioe) {
throw new JsonParseException("Couldn't read test file", ioe);
}
Expand Down

0 comments on commit 1b45992

Please sign in to comment.