ref #9359 upgrade TaxEditor to log4j2
[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.logging.log4j.LogManager;import org.apache.logging.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.store.operations.AbstractTaxeditorOperationTestBase;
21
22 /**
23 * @author n.hoffmann
24 * @created 08.04.2009
25 */
26 public class ChangeHomotypicalGroupBasionymOperationTest extends AbstractTaxeditorOperationTestBase {
27
28 private static final Logger logger = Logger.getLogger(ChangeHomotypicalGroupBasionymOperationTest.class);
29
30 private static Synonym synonym;
31
32 private static HomotypicalGroup homotypicalGroup;
33
34 @BeforeClass
35 public static void setUpBeforeClass() throws Exception {
36
37 taxon = Taxon.NewInstance(null, null);
38 synonym = Synonym.NewInstance(null, null);
39 homotypicalGroup = HomotypicalGroup.NewInstance();
40 // FIXME homotypical group and basionym related methods are not implemented in the library
41 // wait till this gets done before implementing the test
42
43 operation = new ChangeHomotypicalGroupBasionymOperation("", undoContext, taxon, synonym, postOperation);
44 }
45
46 @Test
47 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
48 operation.execute(monitor, info);
49
50 logger.warn("Wating for functionality in library");
51 }
52
53 /**
54 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
55 * @throws ExecutionException
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 /**
65 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
66 * @throws ExecutionException
67 */
68 @Test
69 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
70 operation.redo(monitor, info);
71
72 logger.warn("Wating for functionality in library");
73 }
74
75 /**
76 * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
77 */
78 @Test
79 public void testPostExecute() {
80 // TODO there is not post operation functionality for this class
81 // at the moment. Implement test when there is.
82 logger.warn("No post operation functionality for this class");
83 }
84 }