import org.collectionspace.services.client.PoxPayloadIn;
import org.collectionspace.services.client.PoxPayloadOut;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
+import org.collectionspace.services.common.datetime.GregorianCalendarDateTimeUtils;
import org.collectionspace.services.intake.ConditionCheckerOrAssessorList;
import org.collectionspace.services.intake.IntakesCommon;
import org.collectionspace.services.intake.InsurerList;
private String insurerRefName = null;
private String valuerRefName = null;
private final int NUM_AUTH_REFS_EXPECTED = 5;
+ private final static String CURRENT_DATE_UTC =
+ GregorianCalendarDateTimeUtils.currentDateUTC();
@Override
protected String getServiceName() {
IntakeClient intakeClient = new IntakeClient();
PoxPayloadOut multipart = createIntakeInstance(
"entryNumber-" + identifier,
- "entryDate-" + identifier,
+ CURRENT_DATE_UTC,
currentOwnerRefName,
depositorRefName,
conditionCheckerOrAssessorRefName,
import org.collectionspace.services.client.PayloadOutputPart;\r
import org.collectionspace.services.client.PoxPayloadOut;\r
import org.collectionspace.services.common.authorityref.AuthorityRefDocList;\r
+import org.collectionspace.services.common.datetime.GregorianCalendarDateTimeUtils;\r
import org.collectionspace.services.intake.ConditionCheckerOrAssessorList;\r
import org.collectionspace.services.intake.IntakesCommon;\r
import org.collectionspace.services.intake.InsurerList;\r
private String insurerRefName = null;\r
private String valuerRefName = null;\r
private final int NUM_AUTH_REF_DOCS_EXPECTED = 1;\r
+ private final static String CURRENT_DATE_UTC =\r
+ GregorianCalendarDateTimeUtils.currentDateUTC();\r
\r
@Override\r
protected String getServiceName() {\r
IntakeClient intakeClient = new IntakeClient();\r
PoxPayloadOut multipart = createIntakeInstance(\r
"entryNumber-" + identifier,\r
- "entryDate-" + identifier,\r
+ CURRENT_DATE_UTC,\r
currentOwnerRefName,\r
// Use currentOwnerRefName twice to test fix for CSPACE-2863\r
currentOwnerRefName, //depositorRefName,\r
import org.collectionspace.services.client.PersonAuthorityClientUtils;
import org.collectionspace.services.client.PoxPayloadOut;
import org.collectionspace.services.common.authorityref.AuthorityRefDocList;
+import org.collectionspace.services.common.datetime.GregorianCalendarDateTimeUtils;
import org.collectionspace.services.intake.ConditionCheckerOrAssessorList;
import org.collectionspace.services.intake.IntakesCommon;
import org.collectionspace.services.intake.InsurerList;
private String valuerRefName = null;
private String valuerShortId = null;
private final int NUM_AUTH_REF_DOCS_EXPECTED = 1;
+ private final static String CURRENT_DATE_UTC =
+ GregorianCalendarDateTimeUtils.currentDateUTC();
@Override
public String getServiceName() {
IntakeClient intakeClient = new IntakeClient();
PoxPayloadOut multipart = createIntakeInstance(
"entryNumber-" + identifier,
- "entryDate-" + identifier,
+ CURRENT_DATE_UTC,
currentOwnerRefName,
depositorRefName,
conditionCheckerAssessorRefName,
import org.collectionspace.services.client.PoxPayloadIn;
import org.collectionspace.services.client.PoxPayloadOut;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
+import org.collectionspace.services.common.datetime.GregorianCalendarDateTimeUtils;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.loanin.LenderGroup;
import org.collectionspace.services.loanin.LenderGroupList;
// FIXME: Value changed from 5 to 2 when repeatable / multivalue 'lenders'
// group was added to tenant-bindings.xml
private final int NUM_AUTH_REFS_EXPECTED = 2;
+ private final static String CURRENT_DATE_UTC =
+ GregorianCalendarDateTimeUtils.currentDateUTC();
/* (non-Javadoc)
* @see org.collectionspace.services.client.test.BaseServiceTest#getClientInstance()
LoaninClient loaninClient = new LoaninClient();
PoxPayloadOut multipart = createLoaninInstance(
"loanInNumber-" + identifier,
- "returnDate-" + identifier,
+ CURRENT_DATE_UTC,
lenderRefName,
lendersAuthorizerRefName,
lendersContactRefName,
import org.collectionspace.services.client.PoxPayloadOut;
import org.collectionspace.services.common.authorityref.AuthorityRefList;
//import org.collectionspace.services.common.authorityref.AuthorityRefList.AuthorityRefItem;
+import org.collectionspace.services.common.datetime.GregorianCalendarDateTimeUtils;
import org.collectionspace.services.jaxb.AbstractCommonList;
import org.collectionspace.services.loanout.LoansoutCommon;
//import org.collectionspace.services.loanout.LoansoutCommonList;
// authority - as an authRef to tests below, and increase the
// number of expected authRefs to 4.
private final int NUM_AUTH_REFS_EXPECTED = 4;
+
+ private final static String CURRENT_DATE_UTC =
+ GregorianCalendarDateTimeUtils.currentDateUTC();
/* (non-Javadoc)
* @see org.collectionspace.services.client.test.BaseServiceTest#getClientInstance()
LoanoutClient loanoutClient = new LoanoutClient();
PoxPayloadOut multipart = createLoanoutInstance(
"loanOutNumber-" + identifier,
- "returnDate-" + identifier,
+ CURRENT_DATE_UTC,
borrowerRefName,
borrowersContactRefName,
lendersAuthorizerRefName,