From: Aron Roberts Date: Mon, 7 May 2012 17:49:03 +0000 (-0700) Subject: CSPACE-5155: Updated AuthRefsdocs test, using Organization records, in the services... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=e9f16d98bf6b7db70772257ffb252ff3da95e8df;p=tmp%2Fjakarta-migration.git CSPACE-5155: Updated AuthRefsdocs test, using Organization records, in the services Intakes module to reflect term info group schema changes. --- diff --git a/services/intake/client/src/test/java/org/collectionspace/services/client/test/OrganizationAuthRefDocsTest.java b/services/intake/client/src/test/java/org/collectionspace/services/client/test/OrganizationAuthRefDocsTest.java index 497389fec..f49d8cdcc 100644 --- a/services/intake/client/src/test/java/org/collectionspace/services/client/test/OrganizationAuthRefDocsTest.java +++ b/services/intake/client/src/test/java/org/collectionspace/services/client/test/OrganizationAuthRefDocsTest.java @@ -43,6 +43,7 @@ import org.collectionspace.services.intake.ConditionCheckerOrAssessorList; import org.collectionspace.services.intake.IntakesCommon; import org.collectionspace.services.intake.InsurerList; import org.collectionspace.services.jaxb.AbstractCommonList; +import org.collectionspace.services.organization.OrgTermGroup; import org.jboss.resteasy.client.ClientResponse; @@ -214,11 +215,17 @@ public class OrganizationAuthRefDocsTest extends BaseServiceTest orgInfo = new HashMap(); orgInfo.put(OrganizationJAXBSchema.SHORT_IDENTIFIER, shortId); - orgInfo.put(OrganizationJAXBSchema.SHORT_NAME, shortName); - orgInfo.put(OrganizationJAXBSchema.LONG_NAME, longName); - PoxPayloadOut multipart = - OrgAuthorityClientUtils.createOrganizationInstance(null, //orgAuthRefName, - orgInfo, orgAuthClient.getItemCommonPartName()); + + List orgTerms = new ArrayList(); + OrgTermGroup term = new OrgTermGroup(); + term.setTermDisplayName(shortName); + term.setTermName(shortName); + term.setMainBodyName(longName); + orgTerms.add(term); + PoxPayloadOut multipart = + OrgAuthorityClientUtils.createOrganizationInstance(null, //orgAuthRefName + orgInfo, orgTerms, orgAuthClient.getItemCommonPartName()); + ClientResponse res = orgAuthClient.createItem(orgAuthCSID, multipart); int statusCode = res.getStatus();