Merge branch 'release/5.19.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / test / java / eu / etaxonomy / taxeditor / editor / name / operation / ChangeHomotypicalGroupBasionymOperationTest.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9 package eu.etaxonomy.taxeditor.editor.name.operation;
10
11 import org.apache.log4j.Logger;
12 import org.eclipse.core.commands.ExecutionException;
13 import org.junit.BeforeClass;
14 import org.junit.Test;
15
16 import eu.etaxonomy.cdm.model.common.ICdmBase;
17 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
18 import eu.etaxonomy.cdm.model.taxon.Synonym;
19 import eu.etaxonomy.cdm.model.taxon.Taxon;
20 import eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation;
21 import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBase;
22
23 /**
24 * @author n.hoffmann
25 * @created 08.04.2009
26 */
27 public class ChangeHomotypicalGroupBasionymOperationTest extends AbstractTaxeditorOperationTestBase {
28 private static final Logger logger = Logger
29 .getLogger(ChangeHomotypicalGroupBasionymOperationTest.class);
30
31 private static Synonym synonym;
32
33 private static HomotypicalGroup homotypicalGroup;
34
35 @BeforeClass
36 public static void setUpBeforeClass() throws Exception {
37
38 taxon = Taxon.NewInstance(null, null);
39 synonym = Synonym.NewInstance(null, null);
40 homotypicalGroup = HomotypicalGroup.NewInstance();
41 // FIXME homotypical group and basionym related methods are not implemented in the library
42 // wait till this gets done before implementing the test
43
44 operation = new ChangeHomotypicalGroupBasionymOperation("", undoContext, taxon, synonym, postOperation);
45 }
46
47 @Test
48 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
49 operation.execute(monitor, info);
50
51 logger.warn("Wating for functionality in library");
52 }
53
54 /**
55 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
56 * @throws ExecutionException
57 */
58 @Test
59 public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
60 operation.undo(monitor, info);
61
62 logger.warn("Wating for functionality in library");
63 }
64
65 /**
66 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
67 * @throws ExecutionException
68 */
69 @Test
70 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
71 operation.redo(monitor, info);
72
73 logger.warn("Wating for functionality in library");
74 }
75
76 /**
77 * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
78 */
79 @Test
80 public void testPostExecute() {
81 // TODO there is not post operation functionality for this class
82 // at the moment. Implement test when there is.
83 logger.warn("No post operation functionality for this class");
84 }
85 }