From 37fe259941ee0677d069d93899615d1e0d692348 Mon Sep 17 00:00:00 2001 From: Amy Wieliczka Date: Wed, 9 May 2012 13:53:11 -0700 Subject: [PATCH] Worked on ObjectExitAuthRefsTest.java createObjectExitInstance --- .../client/test/ObjectExitAuthRefsTest.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/services/objectexit/client/src/test/java/org/collectionspace/services/client/test/ObjectExitAuthRefsTest.java b/services/objectexit/client/src/test/java/org/collectionspace/services/client/test/ObjectExitAuthRefsTest.java index c9ca1f772..d51cb017d 100644 --- a/services/objectexit/client/src/test/java/org/collectionspace/services/client/test/ObjectExitAuthRefsTest.java +++ b/services/objectexit/client/src/test/java/org/collectionspace/services/client/test/ObjectExitAuthRefsTest.java @@ -41,6 +41,7 @@ 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.objectexit.StructuredDateGroup; import org.collectionspace.services.objectexit.ObjectexitCommon; import org.jboss.resteasy.client.ClientResponse; @@ -66,7 +67,7 @@ public class ObjectExitAuthRefsTest extends BaseServiceTest private List personIdsCreated = new ArrayList(); private String personAuthCSID = null; private String depositorRefName = null; - private String exitDate = null; + private StructuredDateGroup exitDateGroup = new StructuredDateGroup(); private String exitNumber = null; private final static String CURRENT_DATE_UTC = GregorianCalendarDateTimeUtils.currentDateUTC(); @@ -91,20 +92,18 @@ public class ObjectExitAuthRefsTest extends BaseServiceTest throw new UnsupportedOperationException(); //method not supported (or needed) in this test class } - private PoxPayloadOut createObjectExitInstance(String depositorRefName, String exitNumber, String exitDateDisplayDate) { - ExitDateGroup exitDateGroup = this.getExitDateGroup(); - exitDateGroup.setDateDisplayDate(exitDateDisplayDate); - + private PoxPayloadOut createObjectExitInstance(String depositorRefName, String exitNumber, String exitDateDisplayDate) { this.exitNumber = exitNumber; this.depositorRefName = depositorRefName; - this.setExitDateGroup(exitDateGroup); + this.exitDateGroup.setDateDisplayDate(exitDateDisplayDate); + this.exitDateGroup.setDateDisplayDate(exitDateDisplayDate); ObjectexitCommon objectexit = new ObjectexitCommon(); - oeExitDateGroup = objectexit.getExitDateGroup(); - oeExitDateGroup.setDisplayDate(exitDateDisplayDate); + StructuredDateGroup oeExitDateGroup = new StructuredDateGroup(); objectexit.setDepositor(depositorRefName); objectexit.setExitNumber(exitNumber); + oeExitDateGroup.setDateDisplayDate(exitDateDisplayDate); objectexit.setExitDateGroup(oeExitDateGroup); PoxPayloadOut multipart = new PoxPayloadOut(ObjectExitClient.SERVICE_PAYLOAD_NAME); -- 2.47.3