Moving editor sources back into trunk
[taxeditor.git] / taxeditor-store / src / test / java / eu / etaxonomy / taxeditor / store / operations / ChangeTaxonToSynonymOperationTest.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.taxeditor.store.operations;
12
13 import org.apache.log4j.Logger;
14 import org.eclipse.core.commands.ExecutionException;
15 import org.junit.BeforeClass;
16 import org.junit.Test;
17
18 import eu.etaxonomy.cdm.model.common.CdmBase;
19 import eu.etaxonomy.cdm.model.name.NonViralName;
20 import eu.etaxonomy.cdm.model.taxon.Taxon;
21
22 /**
23 * @author n.hoffmann
24 * @created 07.04.2009
25 * @version 1.0
26 */
27 public class ChangeTaxonToSynonymOperationTest {
28 private static final Logger logger = Logger
29 .getLogger(ChangeTaxonToSynonymOperationTest.class);
30
31 private static AbstractPostOperation operation;
32
33 private static Taxon taxon;
34
35 /**
36 * @throws java.lang.Exception
37 */
38 @BeforeClass
39 public static void setUpBeforeClass() throws Exception {
40
41 taxon = Taxon.NewInstance(NonViralName.NewInstance(null), null);
42
43 operation = new ChangeTaxonToSynonymOperation("Change Taxon To Synonym", null, taxon);
44 }
45
46 /**
47 * Test method for {@link eu.etaxonomy.taxeditor.store.operations.ChangeTaxonToSynonymOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
48 * @throws ExecutionException
49 */
50 @Test
51 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
52 operation.execute(null, null);
53
54 logger.warn("Can not test. Integration test needed.");
55 }
56
57 /**
58 * Test method for {@link eu.etaxonomy.taxeditor.store.operations.ChangeTaxonToSynonymOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
59 * @throws ExecutionException
60 */
61 @Test
62 public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
63 operation.undo(null, null);
64
65 logger.warn("Can not test. Integration test needed.");
66 }
67
68 /**
69 * Test method for {@link eu.etaxonomy.taxeditor.store.operations.ChangeTaxonToSynonymOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
70 * @throws ExecutionException
71 */
72 @Test
73 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
74 operation.redo(null, null);
75
76 logger.warn("Can not test. Integration test needed.");
77 }
78
79 /**
80 * Test method for {@link eu.etaxonomy.taxeditor.store.operations.AbstractPostOperation#postExecute(CdmBase)}.
81 */
82 @Test
83 public void testPostExecute() {
84 // TODO there is not post operation functionality for this class
85 // at the moment. Implement test when there is.
86 logger.warn("No post operation functionality for this class");
87 }
88 }