refactored folder structure
[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 import eu.etaxonomy.taxeditor.operations.AbstractPostOperation;
15 import eu.etaxonomy.taxeditor.operations.ChangeSynonymToHomotypicalGroupBasionymOperation;
16
17 public class ChangeSynonymToHomotypicalGroupBasionymOperationTest {
18 private static final Logger logger = Logger
19 .getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
20
21
22 // TODO move this to a superclass
23 public static final IProgressMonitor monitor = null;
24 public static final IAdaptable info = null;
25
26 private static AbstractPostOperation operation;
27
28 private static Taxon taxon;
29
30 private static Synonym synonym;
31
32 private static Synonym basionym;
33
34 private static HomotypicalGroup homotypicalGroup;
35
36 @BeforeClass
37 public static void setUpBeforeClass() throws Exception {
38 taxon = Taxon.NewInstance(null, null);
39 synonym = Synonym.NewInstance(null, null);
40 basionym = Synonym.NewInstance(null, null);
41 homotypicalGroup = HomotypicalGroup.NewInstance();
42
43 // FIXME homotypical group and basionym related maethods are not implemented in the library
44 // wait till this gets done before implementing the test
45
46 operation = new ChangeSynonymToHomotypicalGroupBasionymOperation("Change Synonym To Basionym of Homotypical Group",
47 null, taxon, synonym);
48 }
49
50 @Test
51 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
52 operation.execute(monitor, info);
53
54 logger.warn("Wating for functionality in library");
55 }
56
57 @Test
58 public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
59 operation.undo(monitor, info);
60
61 logger.warn("Wating for functionality in library");
62 }
63
64 @Test
65 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
66 operation.redo(monitor, info);
67
68 logger.warn("Wating for functionality in library");
69 }
70
71 @Test
72 public void testPostExecute() {
73 // TODO there is not post operation functionality for this class
74 // at the moment. Implement test when there is.
75 logger.warn("No post operation functionality for this class");
76 }
77 }