comment the failing line out because the remove null value call in getChilren method...
authorKatja Luther <k.luther@bgbm.org>
Mon, 4 Apr 2016 12:59:22 +0000 (14:59 +0200)
committerKatja Luther <k.luther@bgbm.org>
Mon, 4 Apr 2016 12:59:22 +0000 (14:59 +0200)
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/session/CdmEntitySessionAwareTest.java

index 88d5b24a7ea923de303c44d38584c343a6458506..a54143cd2819c50db887014d640f3560490457b2 100644 (file)
@@ -17,7 +17,6 @@ import java.util.Set;
 import java.util.UUID;
 
 import org.apache.log4j.Logger;
 import java.util.UUID;
 
 import org.apache.log4j.Logger;
-import org.hibernate.collection.spi.PersistentCollection;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.junit.Assert;
 import org.junit.BeforeClass;
 import org.junit.Test;
@@ -50,6 +49,7 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
 import eu.etaxonomy.taxeditor.httpinvoker.TestThread;
 
 import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
 import eu.etaxonomy.taxeditor.httpinvoker.TestThread;
 
+
 /**
  * @author cmathew
  * @date 7 Oct 2014
 /**
  * @author cmathew
  * @date 7 Oct 2014
@@ -295,8 +295,8 @@ public class CdmEntitySessionAwareTest extends RemotingSessionAwareTest {
 
 
         PolytomousKeyNode pkeynode = pkey.getRoot();
 
 
         PolytomousKeyNode pkeynode = pkey.getRoot();
-
-        PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
+//because of the check for null values in getChildren it isn't a persistent list anymore
+  //     PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
         PolytomousKeyNode childNode0 = (PolytomousKeyNode)commonService.get(pkeynode.getUuid(), "children", 0);
         PolytomousKey subkey1 = CdmBase.deproxy(childNode0.getSubkey(),PolytomousKey.class);
         String subkey1title = subkey1.getTitleCache();
         PolytomousKeyNode childNode0 = (PolytomousKeyNode)commonService.get(pkeynode.getUuid(), "children", 0);
         PolytomousKey subkey1 = CdmBase.deproxy(childNode0.getSubkey(),PolytomousKey.class);
         String subkey1title = subkey1.getTitleCache();