forgot to add in last commit
[taxeditor.git] / eu.etaxonomy.taxeditor.test / src / test / java / eu / etaxonomy / taxeditor / lazyloading / RemoteLazyLoadingTest.java
index 30fe70bf159b009829695c87c332a0ef654e3f24..422dabd18ff211891026ac254d3b8e945bf3cbd2 100644 (file)
@@ -31,7 +31,6 @@ import eu.etaxonomy.cdm.model.common.CdmBase;
 import eu.etaxonomy.cdm.model.name.BotanicalName;
 import eu.etaxonomy.cdm.model.name.NonViralName;
 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
-import eu.etaxonomy.cdm.model.taxon.Classification;
 import eu.etaxonomy.cdm.model.taxon.SynonymRelationship;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.cdm.model.taxon.TaxonNode;
@@ -124,7 +123,7 @@ public class RemoteLazyLoadingTest extends BaseRemotingTest {
         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);
         taxonService.merge(taxonNew);
@@ -221,7 +220,7 @@ public class RemoteLazyLoadingTest extends BaseRemotingTest {
         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);
@@ -258,7 +257,7 @@ public class RemoteLazyLoadingTest extends BaseRemotingTest {
             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);
         }