TaxonomyauthorityCommon Taxonomyauthority = new TaxonomyauthorityCommon();
Taxonomyauthority.setDisplayName(displayName);
Taxonomyauthority.setShortIdentifier(shortIdentifier);
- String refName = createTaxonomyAuthRefName(shortIdentifier, displayName);
- Taxonomyauthority.setRefName(refName);
+ // String refName = createTaxonomyAuthRefName(shortIdentifier, displayName);
+ // Taxonomyauthority.setRefName(refName);
Taxonomyauthority.setVocabType("Taxonomyauthority"); //FIXME: REM - Should this really be hard-coded?
PoxPayloadOut multipart = new PoxPayloadOut(TaxonomyAuthorityClient.SERVICE_PAYLOAD_NAME);
PayloadOutputPart commonPart = multipart.addPart(Taxonomyauthority, MediaType.APPLICATION_XML_TYPE);
String shortId = taxonInfo.get(TaxonJAXBSchema.SHORT_IDENTIFIER);
String displayName = taxonInfo.get(TaxonJAXBSchema.DISPLAY_NAME);
taxon.setShortIdentifier(shortId);
- String taxonomyRefName = createTaxonomyRefName(taxonomyAuthRefName, shortId, displayName);
- taxon.setRefName(taxonomyRefName);
+ // String taxonomyRefName = createTaxonomyRefName(taxonomyAuthRefName, shortId, displayName);
+ // taxon.setRefName(taxonomyRefName);
String value = null;
value = taxonInfo.get(TaxonJAXBSchema.DISPLAY_NAME_COMPUTED);
boolean displayNameComputed = (value == null) || value.equalsIgnoreCase("true");
TaxonomyAuthorityClient client = new TaxonomyAuthorityClient();
String shortId = createIdentifier();
String displayName = "displayName-" + shortId;
- String baseRefName =
- TaxonomyAuthorityClientUtils.createTaxonomyAuthRefName(shortId, null);
-
+ // String baseRefName =
+ // TaxonomyAuthorityClientUtils.createTaxonomyAuthRefName(shortId, null);
+ final String EMPTY_REFNAME = "";
PoxPayloadOut multipart =
TaxonomyAuthorityClientUtils.createTaxonomyAuthorityInstance(
displayName, shortId, client.getCommonPartName());
// Store the ID returned from the first resource created
// for additional tests below.
if (knownResourceId == null) {
- setKnownResource(newID, shortId, baseRefName);
+ setKnownResource(newID, shortId, EMPTY_REFNAME);
if (logger.isDebugEnabled()) {
logger.debug(testName + ": knownResourceId=" + knownResourceId);
}
nonexMap.put(TaxonJAXBSchema.NAME, TEST_TAXON_FULL_NAME);
nonexMap.put(TaxonJAXBSchema.SHORT_IDENTIFIER, "nonEx");
nonexMap.put(TaxonJAXBSchema.TERM_STATUS, TEST_TERM_STATUS);
+ // PoxPayloadOut multipart =
+ // TaxonomyAuthorityClientUtils.createTaxonInstance(
+ // TaxonomyAuthorityClientUtils.createTaxonomyRefName(knownResourceRefName, "nonEx", "Non Existent"),
+ // nonexMap, NULL_TAXON_AUTHOR_GROUP_LIST, NULL_TAXON_CITATION_LIST,
+ // client.getItemCommonPartName());
+ final String EMPTY_REFNAME = "";
PoxPayloadOut multipart =
- TaxonomyAuthorityClientUtils.createTaxonInstance(
- TaxonomyAuthorityClientUtils.createTaxonomyRefName(knownResourceRefName, "nonEx", "Non Existent"),
+ TaxonomyAuthorityClientUtils.createTaxonInstance(EMPTY_REFNAME,
nonexMap, NULL_TAXON_AUTHOR_GROUP_LIST, NULL_TAXON_CITATION_LIST,
client.getItemCommonPartName());
ClientResponse<String> res =