1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2015 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.cdm.model;
|
11
|
|
12
|
import org.apache.log4j.Level;
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.junit.Before;
|
15
|
import org.junit.BeforeClass;
|
16
|
import org.junit.Test;
|
17
|
|
18
|
import eu.etaxonomy.cdm.api.service.IClassificationService;
|
19
|
import eu.etaxonomy.cdm.api.service.ITaxonNodeService;
|
20
|
import eu.etaxonomy.cdm.api.service.ITaxonService;
|
21
|
import eu.etaxonomy.cdm.model.common.Language;
|
22
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
23
|
import eu.etaxonomy.taxeditor.httpinvoker.CDMServer;
|
24
|
import eu.etaxonomy.taxeditor.operations.OperationTestBase;
|
25
|
import eu.etaxonomy.taxeditor.remoting.cache.CdmTransientEntityCacher;
|
26
|
import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
|
27
|
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
|
28
|
import eu.etaxonomy.taxeditor.session.MockSessionOwner;
|
29
|
|
30
|
/**
|
31
|
* @author cmathew
|
32
|
* @date 9 Mar 2015
|
33
|
*
|
34
|
*/
|
35
|
public class TaxonNavigatorTest extends OperationTestBase {
|
36
|
|
37
|
private static final Logger logger = Logger.getLogger(TaxonNameEditorTest.class);
|
38
|
|
39
|
|
40
|
|
41
|
|
42
|
ITaxonNodeService taxonNodeService = getRemoteApplicationController().getTaxonNodeService();
|
43
|
ITaxonService taxonService = getRemoteApplicationController().getTaxonService();
|
44
|
IClassificationService classificationService = getRemoteApplicationController().getClassificationService();
|
45
|
|
46
|
|
47
|
private CdmTransientEntityCacher cacher;
|
48
|
private ICdmEntitySessionEnabled sessionOwner;
|
49
|
private ICdmEntitySession cdmEntitySession;
|
50
|
|
51
|
Language english = Language.getLanguageFromUuid(Language.uuidEnglish);
|
52
|
|
53
|
|
54
|
|
55
|
@BeforeClass
|
56
|
public static void initializePolytomousKeyTest() {
|
57
|
logger.setLevel(Level.INFO);
|
58
|
CDMServer.getInstance().setKeepServerRunning(true);
|
59
|
initializeController("default",
|
60
|
"localhost",
|
61
|
8080,
|
62
|
"",
|
63
|
NomenclaturalCode.ICNAFP,
|
64
|
"admin",
|
65
|
"00000");
|
66
|
}
|
67
|
|
68
|
|
69
|
@Before
|
70
|
public void initializeSession() {
|
71
|
sessionOwner = new MockSessionOwner();
|
72
|
cdmEntitySession = cdmEntitySessionManager.newSession(sessionOwner, true);
|
73
|
cacher = getCacher(sessionOwner);
|
74
|
}
|
75
|
|
76
|
@Test
|
77
|
public void addNewTaxonTest() {
|
78
|
|
79
|
}
|
80
|
|
81
|
@Test
|
82
|
public void addNewClassificationTest() {
|
83
|
|
84
|
}
|
85
|
|
86
|
@Test
|
87
|
public void changeAcceptedTaxonToSynonymTest() {
|
88
|
|
89
|
}
|
90
|
|
91
|
@Test
|
92
|
public void moveTaxonTest() {
|
93
|
|
94
|
}
|
95
|
|
96
|
|
97
|
}
|