use of org.orcid.jaxb.model.v3.dev1.record.PersonalDetails in project ORCID-Source by ORCID.
the class PersonalDetailsManagerTest method getPublicPersonalDetailsTest2.
@Test
public void getPublicPersonalDetailsTest2() {
PersonalDetails personalDetails = personalDetailsManager.getPublicPersonalDetails(ORCID2);
assertNotNull(personalDetails);
assertNotNull(personalDetails.getOtherNames());
assertTrue(personalDetails.getOtherNames().getOtherNames().isEmpty());
assertNull(personalDetails.getBiography());
assertNull(personalDetails.getName());
}
use of org.orcid.jaxb.model.v3.dev1.record.PersonalDetails in project ORCID-Source by ORCID.
the class PersonalDetailsManagerTest method getPublicPersonalDetailsTest.
@Test
public void getPublicPersonalDetailsTest() {
PersonalDetails personalDetails = personalDetailsManager.getPublicPersonalDetails(ORCID1);
assertNotNull(personalDetails);
assertNotNull(personalDetails.getOtherNames());
assertNotNull(personalDetails.getOtherNames().getOtherNames());
assertEquals(1, personalDetails.getOtherNames().getOtherNames().size());
assertEquals(Long.valueOf(18), personalDetails.getOtherNames().getOtherNames().get(0).getPutCode());
assertNull(personalDetails.getBiography());
assertNull(personalDetails.getName());
}
use of org.orcid.jaxb.model.v3.dev1.record.PersonalDetails in project ORCID-Source by ORCID.
the class PersonalDetailsManagerTest method getPublicPersonalDetailsTest3.
@Test
public void getPublicPersonalDetailsTest3() {
PersonalDetails personalDetails = personalDetailsManager.getPublicPersonalDetails(ORCID3);
assertNotNull(personalDetails);
assertNotNull(personalDetails.getOtherNames());
assertNotNull(personalDetails.getOtherNames().getOtherNames());
assertEquals(1, personalDetails.getOtherNames().getOtherNames().size());
assertEquals(Long.valueOf(13), personalDetails.getOtherNames().getOtherNames().get(0).getPutCode());
assertNotNull(personalDetails.getBiography());
assertEquals(Visibility.PUBLIC, personalDetails.getBiography().getVisibility());
assertEquals("Biography for 0000-0000-0000-0003", personalDetails.getBiography().getContent());
assertNotNull(personalDetails.getName());
assertEquals("Credit Name", personalDetails.getName().getCreditName().getContent());
assertEquals("Family Name", personalDetails.getName().getFamilyName().getContent());
assertEquals("Given Names", personalDetails.getName().getGivenNames().getContent());
assertEquals(Visibility.PUBLIC, personalDetails.getName().getVisibility());
}
Aggregations