Project

General

Profile

« Previous | Next » 

Revision 68f3f710

Added by Andreas Müller 4 months ago

minor

View differences:

eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/newWizard/NewTaxonWizardTest.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.newWizard;
5 10

  
6
import junit.framework.Assert;
7

  
8
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
11
import org.eclipse.swtbot.swt.finder.waits.Conditions;
9 12
import org.eclipse.swtbot.swt.finder.widgets.SWTBotButton;
13
import org.junit.Assert;
10 14
import org.junit.Ignore;
11 15
import org.junit.Test;
12 16

  
......
14 18

  
15 19
/**
16 20
 * @author n.hoffmann
17
 *
18 21
 */
19 22
@Ignore
20 23
public class NewTaxonWizardTest extends AbstractEditorTest {
......
50 53
//		bot.waitUntil(Conditions.waitForEditor(WithPartId.withPartId(MultiPageTaxonEditor.ID)));
51 54
//		Assert.assertEquals(newTaxonName, bot.activeEditor().getTitle());
52 55
	}
53

  
54

  
55

  
56

  
57
}
56
}
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/selection/AbstractSelectionElementTest.java
1 1
/**
2
 * 
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.ui.selection;
5 10

  
6 11
import org.junit.After;
......
8 13
import eu.etaxonomy.taxeditor.test.AbstractEditorTest;
9 14

  
10 15
/**
11
 * This test will only test the selection element itself. The test may have to start other 
12
 * dialogs open windows before to get at the selection element. Any errors on the way 
16
 * This test will only test the selection element itself. The test may have to start other
17
 * dialogs open windows before to get at the selection element. Any errors on the way
13 18
 * should be handled by different tests.
14
 * 
19
 *
15 20
 * @author n.hoffmann
16 21
 *
17 22
 */
18 23
public abstract class AbstractSelectionElementTest extends AbstractEditorTest{
19 24

  
20
	
21

  
22 25
	@After
23 26
	public void tearDown() {
24 27
		utils.cancel();
25 28
	}
26
	
29

  
27 30
}
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/selection/ClassificationSelectionElementTest.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.ui.selection;
5 10

  
6 11
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
......
17 22
 */
18 23
@Ignore
19 24
public class ClassificationSelectionElementTest extends AbstractSelectionElementTest{
20
	@Override
25

  
26
    @Override
21 27
	public void setup() {
22 28
		super.setup();
23 29
		bot.menu("General").menu("New").menu("Taxon").click();
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/selection/NameSelectionElementTest.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.ui.selection;
5 10

  
6
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
11
import org.eclipse.swtbot.swt.finder.waits.Conditions;
7 12
import org.junit.Ignore;
8 13
import org.junit.Test;
9 14

  
......
13 18
 */
14 19
@Ignore
15 20
public class NameSelectionElementTest extends AbstractSelectionElementTest {
16
	@Override
21

  
22
    @Override
17 23
	public void setup() {
18 24
		super.setup();
19 25
		bot.menu("General").menu("New").menu("Taxon").click();
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/selection/TaxonNodeSelectionElementTest.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.ui.selection;
5 10

  
6 11
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/ui/selection/TaxonSelectionElementTest.java
1 1
/**
2
 *
3
 */
2
* Copyright (C) 2015 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
*/
4 9
package eu.etaxonomy.taxeditor.ui.selection;
5 10

  
6 11
import org.eclipse.swtbot.eclipse.finder.waits.Conditions;
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/util/H2DbSupport.java
1
/**
2
* Copyright (C) 2015 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
*/
1 9
package eu.etaxonomy.taxeditor.util;
2 10

  
3 11
/**
4 12
 * based on from http://code.google.com/p/java-tester/source/browse/trunk/src/main/java/org/jtester/unitils/database/H2DbSupport.java
5 13
 */
6

  
7

  
8 14
import java.util.Set;
9 15

  
10 16
import org.unitils.core.dbsupport.DbSupport;
11 17

  
12 18
public class H2DbSupport extends DbSupport {
13 19
        /**
14
         * Creates support for HsqlDb databases.
20
         * Creates support for H2 databases.
15 21
         */
16 22
        public H2DbSupport() {
17 23
                super("h2");

Also available in: Unified diff