ref #9359 upgrade TaxEditor to log4j2
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / test / java / eu / etaxonomy / taxeditor / editor / name / operation / ChangeSynonymToHomotypicalGroupBasionymOperationTest.java
index 0bafd9c926e5cf2025265f22027873ad72523b19..b18ac06d89ec13b2e6524710aa2532c3619a92f2 100644 (file)
@@ -1,7 +1,7 @@
 
 package eu.etaxonomy.taxeditor.editor.name.operation;
 
-import org.apache.log4j.Logger;
+import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
 import org.eclipse.core.commands.ExecutionException;
 import org.eclipse.core.runtime.IAdaptable;
 import org.eclipse.core.runtime.IProgressMonitor;
@@ -11,38 +11,37 @@ import org.junit.Test;
 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
 import eu.etaxonomy.cdm.model.taxon.Synonym;
 import eu.etaxonomy.cdm.model.taxon.Taxon;
-import eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToHomotypicalGroupBasionymOperation;
 import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
 
 public class ChangeSynonymToHomotypicalGroupBasionymOperationTest {
-       private static final Logger logger = Logger
-                       .getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
+
+    private static final Logger logger = Logger.getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
 
 
        // TODO move this to a superclass
        public static final IProgressMonitor monitor = null;
-       public static final IAdaptable info = null;     
-       
+       public static final IAdaptable info = null;
+
        private static AbstractPostOperation operation;
 
        private static Taxon taxon;
 
        private static Synonym synonym;
-       
+
        private static Synonym basionym;
 
        private static HomotypicalGroup homotypicalGroup;
-       
+
        @BeforeClass
        public static void setUpBeforeClass() throws Exception {
                taxon = Taxon.NewInstance(null, null);
                synonym = Synonym.NewInstance(null, null);
                basionym = Synonym.NewInstance(null, null);
                homotypicalGroup = HomotypicalGroup.NewInstance();
-               
+
                // FIXME homotypical group and basionym related maethods are not implemented in the library
                // wait till this gets done before implementing the test
-               
+
                operation = new ChangeSynonymToHomotypicalGroupBasionymOperation("Change Synonym To Basionym of Homotypical Group",
                                                                        null, taxon, synonym);
        }
@@ -50,21 +49,21 @@ public class ChangeSynonymToHomotypicalGroupBasionymOperationTest {
        @Test
        public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
                operation.execute(monitor, info);
-               
+
                logger.warn("Wating for functionality in library");
        }
 
        @Test
        public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.undo(monitor, info);
-               
+
                logger.warn("Wating for functionality in library");
        }
-       
+
        @Test
        public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
                operation.redo(monitor, info);
-               
+
                logger.warn("Wating for functionality in library");
        }