예제 #1
0
 @Test(expected = OrcidValidationException.class)
 public void validateExternalIdentifier_invalidValueTest() {
   PersonExternalIdentifier extId = getPersonExternalIdentifier();
   extId.setValue(null);
   PersonValidator.validateExternalIdentifier(
       extId, getSourceEntity(), true, true, Visibility.PUBLIC, true);
   fail();
 }
예제 #2
0
 private PersonExternalIdentifier getPersonExternalIdentifier() {
   PersonExternalIdentifier extId = new PersonExternalIdentifier();
   extId.setRelationship(Relationship.SELF);
   extId.setType("doi");
   extId.setUrl(new Url("http://test.orcid.org"));
   extId.setValue("extId1");
   extId.setVisibility(Visibility.PUBLIC);
   return extId;
 }