From e9f16d98bf6b7db70772257ffb252ff3da95e8df Mon Sep 17 00:00:00 2001 From: Aron Roberts Date: Mon, 7 May 2012 10:49:03 -0700 Subject: [PATCH] CSPACE-5155: Updated AuthRefsdocs test, using Organization records, in the services Intakes module to reflect term info group schema changes. --- .../test/OrganizationAuthRefDocsTest.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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(); -- 2.47.3