ref #6190 removing svn property place holder in first line of code - java files
[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
10 package eu.etaxonomy.taxeditor.editor.name.operation;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.core.commands.ExecutionException;
14 import org.junit.BeforeClass;
15 import org.junit.Test;
16
17 import eu.etaxonomy.cdm.model.common.ICdmBase;
18 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
19 import eu.etaxonomy.cdm.model.taxon.Synonym;
20 import eu.etaxonomy.cdm.model.taxon.Taxon;
21 import eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation;
22 import eu.etaxonomy.taxeditor.store.operations.AbstractTaxeditorOperationTestBase;
23
24 /**
25 * @author n.hoffmann
26 * @created 08.04.2009
27 * @version 1.0
28 */
29 public class ChangeHomotypicalGroupBasionymOperationTest extends AbstractTaxeditorOperationTestBase {
30 private static final Logger logger = Logger
31 .getLogger(ChangeHomotypicalGroupBasionymOperationTest.class);
32
33 private static Synonym synonym;
34
35 private static HomotypicalGroup homotypicalGroup;
36
37 /**
38 * @throws java.lang.Exception
39 */
40 @BeforeClass
41 public static void setUpBeforeClass() throws Exception {
42
43 taxon = Taxon.NewInstance(null, null);
44 synonym = Synonym.NewInstance(null, null);
45 homotypicalGroup = HomotypicalGroup.NewInstance();
46 // FIXME homotypical group and basionym related maethods are not implemented in the library
47 // wait till this gets done before implementing the test
48
49 operation = new ChangeHomotypicalGroupBasionymOperation("", undoContext, taxon, synonym, postOperation);
50 }
51
52 /**
53 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#execute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
54 * @throws ExecutionException
55 */
56 @Test
57 public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
58 operation.execute(monitor, info);
59
60 logger.warn("Wating for functionality in library");
61 }
62
63 /**
64 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#undo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
65 * @throws ExecutionException
66 */
67 @Test
68 public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
69 operation.undo(monitor, info);
70
71 logger.warn("Wating for functionality in library");
72 }
73
74 /**
75 * Test method for {@link eu.etaxonomy.taxeditor.editor.name.operation.ChangeHomotypicalGroupBasionymOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
76 * @throws ExecutionException
77 */
78 @Test
79 public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
80 operation.redo(monitor, info);
81
82 logger.warn("Wating for functionality in library");
83 }
84
85 /**
86 * Test method for {@link eu.etaxonomy.taxeditor.operation.AbstractPostTaxonOperation#postExecute(ICdmBase)}.
87 */
88 @Test
89 public void testPostExecute() {
90 // TODO there is not post operation functionality for this class
91 // at the moment. Implement test when there is.
92 logger.warn("No post operation functionality for this class");
93 }
94 }