-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 10519-dataset-types #10519
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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); | ||
} | ||
|