c8be419ca038a03fea3e6b0354db8479d4b2e5b2
[taxeditor.git] / taxeditor-store / src / test / java / eu / etaxonomy / taxeditor / store / operations / ChangeSynonymToHomotypicalGroupBasionymOperationTest.java
1
2 package eu.etaxonomy.taxeditor.store.operations;
3
4 import org.apache.log4j.Logger;
5 import org.eclipse.core.commands.ExecutionException;
6 import org.eclipse.core.runtime.IAdaptable;
7 import org.eclipse.core.runtime.IProgressMonitor;
8 import org.junit.BeforeClass;
9 import org.junit.Test;
10
11 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
12 import eu.etaxonomy.cdm.model.taxon.Synonym;
13 import eu.etaxonomy.cdm.model.taxon.Taxon;
14
15 public class ChangeSynonymToHomotypicalGroupBasionymOperationTest {
16 private static final Logger logger = Logger
17 .getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
18
19
20 // TODO move this to a superclass
21 public static final IProgressMonitor monitor = null;
22 public static final IAdaptable info = null;
23
24 private static AbstractPostOperation operation;
25
26 private static Taxon taxon;
27
28 private static Synonym synonym;
29
30 private static Synonym basionym;
31
32 private static HomotypicalGroup homotypicalGroup;
33
34 @BeforeClass
35 public static void setUpBeforeClass() throws Exception {
36 taxon = Taxon.NewInstance(null, null);
37 synonym = Synonym.NewInstance(null, null);
38 basionym = Synonym.NewInstance(null, null);
39 homotypicalGroup = HomotypicalGroup.NewInstance();
40
41 // FIXME homotypical group and basionym related maethods are not implemented in the library
42 // wait till this gets done before implementing the test
43
44 operation = new ChangeSynonymToHomotypicalGroupBasionymOperation("Change Synonym To Basionym of Homotypical Group",
45 null, taxon, synonym);
46 }
47
48 @Test
49 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
50 operation.execute(monitor, info);
51
52 logger.warn("Wating for functionality in library");
53 }
54
55 @Test
56 public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
57 operation.undo(monitor, info);
58
59 logger.warn("Wating for functionality in library");
60 }
61
62 @Test
63 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
64 operation.redo(monitor, info);
65
66 logger.warn("Wating for functionality in library");
67 }
68
69 @Test
70 public void testPostExecute() {
71 // TODO there is not post operation functionality for this class
72 // at the moment. Implement test when there is.
73 logger.warn("No post operation functionality for this class");
74 }
75 }