Project

General

Profile

« Previous | Next » 

Revision e5784407

Added by Katja Luther about 8 years ago

comment the failing line out because the remove null value call in getChilren method converts the persistent list into a arraylist

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/session/CdmEntitySessionAwareTest.java
17 17
import java.util.UUID;
18 18

  
19 19
import org.apache.log4j.Logger;
20
import org.hibernate.collection.spi.PersistentCollection;
21 20
import org.junit.Assert;
22 21
import org.junit.BeforeClass;
23 22
import org.junit.Test;
......
50 49
import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest;
51 50
import eu.etaxonomy.taxeditor.httpinvoker.TestThread;
52 51

  
52

  
53 53
/**
54 54
 * @author cmathew
55 55
 * @date 7 Oct 2014
......
295 295

  
296 296

  
297 297
        PolytomousKeyNode pkeynode = pkey.getRoot();
298

  
299
        PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
298
//because of the check for null values in getChildren it isn't a persistent list anymore
299
  //     PersistentCollection children = (PersistentCollection) pkeynode.getChildren();
300 300
        PolytomousKeyNode childNode0 = (PolytomousKeyNode)commonService.get(pkeynode.getUuid(), "children", 0);
301 301
        PolytomousKey subkey1 = CdmBase.deproxy(childNode0.getSubkey(),PolytomousKey.class);
302 302
        String subkey1title = subkey1.getTitleCache();

Also available in: Unified diff