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 88d5b24..a54143c 100644 (file)
@@ -17,7 +17,6 @@ import java.util.Set;
 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;
@@ -50,6 +49,7 @@ import eu.etaxonomy.cdm.model.taxon.Taxon;
 import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
 import eu.etaxonomy.taxeditor.httpinvoker.TestThread;
 
+
 /**
  * @author cmathew
  * @date 7 Oct 2014
@@ -295,8 +295,8 @@ public class CdmEntitySessionAwareTest extends RemotingSessionAwareTest {
 
 
         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();