Project

General

Profile

Revision 5e819507

ID5e819507a617569d47174cc1957f2c7976956ee3
Parent f99a438f
Child 7e2eb03a

Added by Andreas Müller 2 months ago

cleanup

View differences:

eu.etaxonomy.taxeditor.molecular/src/test/java/eu/etaxonomy/taxeditor/molecular/io/SequenceIDIteratorTest.java
1
// $Id$
2 1
/**
3 2
* Copyright (C) 2016 EDIT
4 3
* European Distributed Institute of Taxonomy
......
9 8
*/
10 9
package eu.etaxonomy.taxeditor.molecular.io;
11 10

  
12

  
13 11
import static org.junit.Assert.assertEquals;
14 12
import static org.junit.Assert.assertFalse;
15 13
import static org.junit.Assert.assertTrue;
16 14

  
17 15
import org.junit.Test;
18 16

  
19

  
20

  
21 17
/**
22 18
 * @author Ben Stöver
23 19
 * @date 29.04.2016
eu.etaxonomy.taxeditor.navigation/src/test/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/MoveTaxonOperationTest.java
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
9

  
10 9
package eu.etaxonomy.taxeditor.navigation.navigator.operation;
11 10

  
12 11
import java.util.HashSet;
......
18 17
import org.junit.BeforeClass;
19 18
import org.junit.Test;
20 19

  
21
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
22 20
import eu.etaxonomy.cdm.model.taxon.Classification;
23 21
import eu.etaxonomy.cdm.model.taxon.Taxon;
24 22
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
......
88 86
		Assert.assertEquals(taxon, oldParentTaxon.getTaxonNodes().iterator().next().getChildNodes().iterator().next());
89 87
	}
90 88

  
91
	/**
92
	 * Test method for {@link eu.etaxonomy.taxeditor.navigation.operation.MoveTaxonOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)}.
93
	 * @throws ExecutionException
94
	 */
95 89
	@Test
96 90
	public void testRedoIProgressMonitorIAdaptable() throws ExecutionException {
97 91
	    navigatorOperation.redo(monitor, info);
......
99 93
		Assert.assertEquals(newParentTaxon ,taxon.getTaxonNodes().iterator().next().getParent().getTaxon());
100 94
		Assert.assertEquals(taxon, newParentTaxon.getTaxonNodes().iterator().next().getChildNodes().iterator().next());
101 95
		Assert.assertEquals(0, oldParentTaxon.getTaxonNodes().iterator().next().getChildNodes().size());
102

  
103 96
	}
104 97
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)