From fa95efd597d6b65667ac4eb2e06c4eeda61a37e9 Mon Sep 17 00:00:00 2001 From: Laramie Crocker Date: Thu, 28 Oct 2010 22:37:47 +0000 Subject: [PATCH] NOJIRA: added useful toSTring method --- .../test/CollectionObjectAuthRefsTest.java | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java index c3148a3d0..468c223a8 100644 --- a/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java +++ b/services/collectionobject/client/src/test/java/org/collectionspace/services/client/test/CollectionObjectAuthRefsTest.java @@ -82,6 +82,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { /** The person authority name. */ final String PERSON_AUTHORITY_NAME = "TestPersonAuth"; + final String PERSON_AUTHORITY_NAME_DISPLAY = "TestPersonAuth_DisplayName"; /** The organization authority name. */ final String ORG_AUTHORITY_NAME = "TestOrgAuth"; @@ -120,6 +121,31 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { private String fieldCollectionSourceRefName = null; private String fieldCollectorRefName = null; + public String toString(){ + String result = "CollectionObjectauthRefsTest: " + + "\r\npersonAuthCSID: "+personAuthCSID + + "\r\npersonAuthRefName: "+personAuthRefName + + "\r\norgAuthCSID: "+orgAuthCSID + + "\r\norgAuthRefName: "+orgAuthRefName + + "\r\n" + + "\r\n contentOrganizationRefName: "+contentOrganizationRefName + + "\r\n contentPersonRefName: "+contentPersonRefName + + "\r\n contentInscriberRefName: "+contentInscriberRefName + + "\r\n descriptionInscriberRefName: "+descriptionInscriberRefName + + "\r\n objectProductionPersonRefName: "+objectProductionPersonRefName + + "\r\n objectProductionOrganizationRefName: "+objectProductionOrganizationRefName + + "\r\n assocEventOrganizationRefName: "+assocEventOrganizationRefName + + "\r\n assocEventPersonRefName: "+assocEventPersonRefName + + "\r\n assocOrganizationRefName: "+assocOrganizationRefName + + "\r\n assocPersonRefName: "+assocPersonRefName + + "\r\n ownerRefName: "+ownerRefName + + "\r\n fieldCollectionSourceRefName: "+fieldCollectionSourceRefName + + "\r\n fieldCollectorRefName: "+fieldCollectorRefName; + StringBuffer buff = new StringBuffer(); + + return result; + } + /** The number of authority references expected. */ private final int NUM_AUTH_REFS_EXPECTED = 13; @@ -272,7 +298,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { */ protected void createPersonRefs(){ - createPersonAuthority(PERSON_AUTHORITY_NAME, PERSON_AUTHORITY_NAME); + createPersonAuthority(PERSON_AUTHORITY_NAME_DISPLAY, PERSON_AUTHORITY_NAME); String csid = ""; @@ -457,6 +483,7 @@ public class CollectionObjectAuthRefsTest extends BaseServiceTest { Assert.assertEquals(collectionObject.getAssocEventOrganizations().getAssocEventOrganization().get(0), assocEventOrganizationRefName); // Optionally output additional data about list members for debugging. + logger.info(this.toString()); boolean iterateThroughList = true; if(iterateThroughList && logger.isDebugEnabled()){; int i = 0; -- 2.47.3