Revision 6fd96475
Added by Andreas Müller over 3 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/session/CdmEntitySessionManagerTest.java | ||
---|---|---|
19 | 19 |
import eu.etaxonomy.cdm.model.description.KeyStatement; |
20 | 20 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
21 | 21 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
22 |
import eu.etaxonomy.cdm.persistence.dao.description.IPolytomousKeyNodeDao; |
|
23 | 22 |
import eu.etaxonomy.cdm.persistence.dto.MergeResult; |
24 | 23 |
import eu.etaxonomy.taxeditor.httpinvoker.RemotingSessionAwareTest; |
25 | 24 |
|
... | ... | |
31 | 30 |
@SuppressWarnings("unused") |
32 | 31 |
private static final Logger logger = Logger.getLogger(CdmEntitySessionManagerTest.class); |
33 | 32 |
|
34 |
|
|
35 | 33 |
IPolytomousKeyService polytomousKeyService = getRemoteApplicationController().getPolytomousKeyService(); |
36 | 34 |
IPolytomousKeyNodeService polytomousKeyNodeService = getRemoteApplicationController().getPolytomousKeyNodeService(); |
37 | 35 |
|
38 | 36 |
private final UUID polytomousKeyUuid = UUID.fromString("0d53ba20-7de4-4baa-bd8a-401048447d66"); |
39 | 37 |
private final Language english = Language.getLanguageFromUuid(Language.uuidEnglish); |
40 | 38 |
|
41 |
|
|
42 | 39 |
@BeforeClass |
43 | 40 |
public static void initializeCdmEntitySessionManagerTest() { |
44 | 41 |
} |
45 | 42 |
|
46 |
|
|
47 | 43 |
@Test |
48 | 44 |
public void manageNullSessionTest() { |
49 | 45 |
|
... | ... | |
59 | 55 |
|
60 | 56 |
Assert.assertNotNull(getActiveSession()); |
61 | 57 |
|
62 |
|
|
63 | 58 |
// FIXME:Remoting fix test of setting root entities |
64 | 59 |
//Assert.assertEquals(rootEntities.size(),1); |
65 | 60 |
//Assert.assertSame(rootEntities.get(0), pKey); |
... | ... | |
74 | 69 |
|
75 | 70 |
pKey = CdmBase.deproxy(polytomousKeyService.find(polytomousKeyUuid),PolytomousKey.class); |
76 | 71 |
|
77 |
|
|
78 | 72 |
Assert.assertEquals(pKey.getTitleCache(), upTitleCache); |
79 | 73 |
node = pKey.getRoot().getChildAt(0); |
80 | 74 |
KeyStatement statement = node.getStatement(); |
... | ... | |
121 | 115 |
Assert.fail(); |
122 | 116 |
} |
123 | 117 |
Assert.assertEquals(node.getStatement().getLabel(english).getText(), upStatement); |
124 |
|
|
125 | 118 |
} |
126 |
|
|
127 | 119 |
} |
Also available in: Unified diff
cleanup