Taxon taxonNew = (Taxon)taxonService.find(taxonUuid1);
System.out.println("New Taxon Title : " + taxonNew.getTitleCache());
- Assert.assertNotEquals("Title caches should not be equal",oldTitleCache,taxonNew.getTitleCache());
+ Assert.assertTrue("Title caches should not be equal",oldTitleCache.equals(taxonNew.getTitleCache()));
+
taxonNew.setTitleCache(oldTitleCache, true);
taxonService.merge(taxonNew);
NonViralName nvnNew = CdmBase.deproxy(taxon.getName(),NonViralName.class);
logger.info("New Taxon Name Title : " + nvnNew.getTitleCache());
- Assert.assertNotEquals("Title caches should not be equal",oldTitleCache,nvnNew.getTitleCache());
+ Assert.assertTrue("Title caches should not be equal",oldTitleCache.equals(nvnNew.getTitleCache()));
nvnNew.setTitleCache(oldTitleCache, true);
taxonService.update(taxon);
SynonymRelationship srNew = srItrNew.next();
String relToTitle = relToTitlesItr.next();
System.out.println("New Synonym Title Cache: " + srNew.getSynonym().getTitleCache());
- Assert.assertNotEquals("Synonym Title caches should not be equal", srNew.getSynonym().getTitleCache(), relToTitle);
+ Assert.assertTrue("Synonym Title caches should not be equal", srNew.getSynonym().getTitleCache().equals(relToTitle));
srNew.getSynonym().setTitleCache(relToTitle);
}