Project

General

Profile

« Previous | Next » 

Revision f274f083

Added by Andreas Müller almost 2 years ago

ref #9359 upgrade TaxEditor to log4j2

View differences:

eu.etaxonomy.taxeditor.editor/src/test/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeSynonymToHomotypicalGroupBasionymOperationTest.java
1 1

  
2 2
package eu.etaxonomy.taxeditor.editor.name.operation;
3 3

  
4
import org.apache.log4j.Logger;
4
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
5 5
import org.eclipse.core.commands.ExecutionException;
6 6
import org.eclipse.core.runtime.IAdaptable;
7 7
import org.eclipse.core.runtime.IProgressMonitor;
......
11 11
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
12 12
import eu.etaxonomy.cdm.model.taxon.Synonym;
13 13
import eu.etaxonomy.cdm.model.taxon.Taxon;
14
import eu.etaxonomy.taxeditor.editor.name.operation.ChangeSynonymToHomotypicalGroupBasionymOperation;
15 14
import eu.etaxonomy.taxeditor.operation.AbstractPostOperation;
16 15

  
17 16
public class ChangeSynonymToHomotypicalGroupBasionymOperationTest {
18
	private static final Logger logger = Logger
19
			.getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
17

  
18
    private static final Logger logger = Logger.getLogger(ChangeSynonymToHomotypicalGroupBasionymOperationTest.class);
20 19

  
21 20

  
22 21
	// TODO move this to a superclass
23 22
	public static final IProgressMonitor monitor = null;
24
	public static final IAdaptable info = null;	
25
	
23
	public static final IAdaptable info = null;
24

  
26 25
	private static AbstractPostOperation operation;
27 26

  
28 27
	private static Taxon taxon;
29 28

  
30 29
	private static Synonym synonym;
31
	
30

  
32 31
	private static Synonym basionym;
33 32

  
34 33
	private static HomotypicalGroup homotypicalGroup;
35
	
34

  
36 35
	@BeforeClass
37 36
	public static void setUpBeforeClass() throws Exception {
38 37
		taxon = Taxon.NewInstance(null, null);
39 38
		synonym = Synonym.NewInstance(null, null);
40 39
		basionym = Synonym.NewInstance(null, null);
41 40
		homotypicalGroup = HomotypicalGroup.NewInstance();
42
		
41

  
43 42
		// FIXME homotypical group and basionym related maethods are not implemented in the library
44 43
		// wait till this gets done before implementing the test
45
		
44

  
46 45
		operation = new ChangeSynonymToHomotypicalGroupBasionymOperation("Change Synonym To Basionym of Homotypical Group",
47 46
									null, taxon, synonym);
48 47
	}
......
50 49
	@Test
51 50
	public void testExecuteIProgressMonitorIAdaptable() throws ExecutionException {
52 51
		operation.execute(monitor, info);
53
		
52

  
54 53
		logger.warn("Wating for functionality in library");
55 54
	}
56 55

  
57 56
	@Test
58 57
	public void testUndoIProgressMonitorIAdaptable() throws ExecutionException {
59 58
		operation.undo(monitor, info);
60
		
59

  
61 60
		logger.warn("Wating for functionality in library");
62 61
	}
63
	
62

  
64 63
	@Test
65 64
	public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
66 65
		operation.redo(monitor, info);
67
		
66

  
68 67
		logger.warn("Wating for functionality in library");
69 68
	}
70 69

  

Also available in: Unified diff