LoggerFactory.getLogger(PersonAuthRefDocsTest.class);
// Instance variables specific to this test.
- private IntakeClient intakeClient = new IntakeClient();
- private PersonAuthorityClient personAuthClient = new PersonAuthorityClient();
final String SERVICE_PATH_COMPONENT = "intakes";
final String PERSON_AUTHORITY_NAME = "TestPersonAuth";
private String knownIntakeId = null;
// Create all the person refs and entities
createPersonRefs();
-
+
+ IntakeClient intakeClient = new IntakeClient();
MultipartOutput multipart = createIntakeInstance(
"entryNumber-" + identifier,
"entryDate-" + identifier,
}
protected void createPersonRefs(){
+ PersonAuthorityClient personAuthClient = new PersonAuthorityClient();
String authRefName =
PersonAuthorityClientUtils.createPersonAuthRefName(PERSON_AUTHORITY_NAME, false);
MultipartOutput multipart = PersonAuthorityClientUtils.createPersonAuthorityInstance(
}
protected String createPerson(String firstName, String surName, String refName ) {
+ PersonAuthorityClient personAuthClient = new PersonAuthorityClient();
Map<String, String> personInfo = new HashMap<String,String>();
personInfo.put(PersonJAXBSchema.FORE_NAME, firstName);
personInfo.put(PersonJAXBSchema.SUR_NAME, surName);
testSetup(OK_STATUS, ServiceRequestType.READ,testName);
// Get the auth ref docs and check them
- ClientResponse<AuthorityRefDocList> refDocListResp =
+ PersonAuthorityClient personAuthClient = new PersonAuthorityClient();
+ ClientResponse<AuthorityRefDocList> refDocListResp =
personAuthClient.getReferencingObjects(personAuthCSID, currentOwnerPersonCSID);
int statusCode = refDocListResp.getStatus();
}
return;
}
+ IntakeClient intakeClient = new IntakeClient();
+ PersonAuthorityClient personAuthClient = new PersonAuthorityClient();
if (logger.isDebugEnabled()) {
logger.debug("Cleaning up temporary resources created for testing ...");
}
MultipartOutput multipart = new MultipartOutput();
OutputPart commonPart =
multipart.addPart(intake, MediaType.APPLICATION_XML_TYPE);
- commonPart.getHeaders().add("label", intakeClient.getCommonPartName());
+ commonPart.getHeaders().add("label", new IntakeClient().getCommonPartName());
if(logger.isDebugEnabled()){
logger.debug("to be created, intake common");