use of org.orcid.jaxb.model.v3.dev1.record.Education in project ORCID-Source by ORCID.
the class ActivityValidatorTest method validateEducation_invalidPutCodeTest.
@Test(expected = InvalidPutCodeException.class)
public void validateEducation_invalidPutCodeTest() {
Education education = getEducation();
education.setPutCode(1L);
activityValidator.validateAffiliation(education, null, true, true, Visibility.PUBLIC);
}
use of org.orcid.jaxb.model.v3.dev1.record.Education in project ORCID-Source by ORCID.
the class ActivityValidatorTest method getEducation.
public Education getEducation() {
Education education = new Education();
education.setDepartmentName("department name");
education.setEndDate(getFuzzyDate());
education.setOrganization(getOrganization());
education.setRoleTitle("role");
education.setStartDate(getFuzzyDate());
education.setVisibility(Visibility.PUBLIC);
return education;
}
use of org.orcid.jaxb.model.v3.dev1.record.Education in project ORCID-Source by ORCID.
the class ActivityValidatorTest method validateEducation_validEducationTest.
@Test
public void validateEducation_validEducationTest() {
Education education = getEducation();
activityValidator.validateAffiliation(education, null, true, true, Visibility.PUBLIC);
}
use of org.orcid.jaxb.model.v3.dev1.record.Education in project ORCID-Source by ORCID.
the class AffiliationsManagerTest method getEducation.
private Education getEducation() {
Education element = new Education();
fillAffiliation(element);
return element;
}
use of org.orcid.jaxb.model.v3.dev1.record.Education in project ORCID-Source by ORCID.
the class AffiliationsManagerTest method testAddEducationToClaimedRecordPreserveUserDefaultVisibility.
@Test
public void testAddEducationToClaimedRecordPreserveUserDefaultVisibility() {
when(sourceManager.retrieveSourceEntity()).thenReturn(new SourceEntity(new ClientDetailsEntity(CLIENT_1_ID)));
Education element = getEducation();
element = affiliationsManager.createEducationAffiliation(claimedOrcid, element, true);
element = affiliationsManager.getEducationAffiliation(claimedOrcid, element.getPutCode());
assertNotNull(element);
assertEquals(Visibility.LIMITED, element.getVisibility());
}
Aggregations