Revision 4af62238
Added by Andreas Kohlbecker about 12 years ago
.gitattributes | ||
---|---|---|
252 | 252 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/pom.xml -text |
253 | 253 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/Browser.java -text |
254 | 254 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalContext.java -text |
255 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalContexts.java -text |
|
256 | 255 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalManager.java -text |
257 | 256 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/SystemUtils.java -text |
258 | 257 |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/TestConfiguration.java -text |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalContexts.java | ||
---|---|---|
1 |
/** |
|
2 |
* |
|
3 |
*/ |
|
4 |
package eu.etaxonomy.dataportal; |
|
5 |
|
|
6 |
import java.lang.annotation.ElementType; |
|
7 |
import java.lang.annotation.Inherited; |
|
8 |
import java.lang.annotation.Retention; |
|
9 |
import java.lang.annotation.RetentionPolicy; |
|
10 |
import java.lang.annotation.Target; |
|
11 |
|
|
12 |
@Retention(RetentionPolicy.RUNTIME) |
|
13 |
@Target(ElementType.TYPE) |
|
14 |
@Inherited |
|
15 |
public @interface DataPortalContexts { |
|
16 |
/** |
|
17 |
* @return an array of DataPortalContext to which the annotated test |
|
18 |
* class is applicable |
|
19 |
*/ |
|
20 |
DataPortalContext[] value(); |
|
21 |
} |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/junit/DataPortalContextSuite.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.dataportal.junit; |
5 | 5 |
|
6 |
import java.lang.annotation.ElementType; |
|
7 |
import java.lang.annotation.Inherited; |
|
8 |
import java.lang.annotation.Retention; |
|
9 |
import java.lang.annotation.RetentionPolicy; |
|
10 |
import java.lang.annotation.Target; |
|
6 | 11 |
import java.util.ArrayList; |
7 | 12 |
import java.util.Collections; |
8 | 13 |
import java.util.List; |
... | ... | |
14 | 19 |
import org.junit.runners.model.FrameworkMethod; |
15 | 20 |
import org.junit.runners.model.InitializationError; |
16 | 21 |
import org.junit.runners.model.Statement; |
17 |
import org.junit.runners.model.TestClass; |
|
18 | 22 |
|
19 | 23 |
import eu.etaxonomy.dataportal.DataPortalContext; |
20 |
import eu.etaxonomy.dataportal.DataPortalContexts; |
|
21 | 24 |
import eu.etaxonomy.dataportal.selenium.CdmDataPortalTestBase; |
22 | 25 |
|
23 | 26 |
|
... | ... | |
27 | 30 |
*/ |
28 | 31 |
public class DataPortalContextSuite extends Suite{ |
29 | 32 |
|
33 |
/** |
|
34 |
* Only to be used for test calsses which extend {@link CdmDataPortalTestBase} |
|
35 |
* |
|
36 |
* @author a.kohlbecker |
|
37 |
*/ |
|
38 |
@Retention(RetentionPolicy.RUNTIME) |
|
39 |
@Target(ElementType.TYPE) |
|
40 |
@Inherited |
|
41 |
public @interface DataPortalContexts { |
|
42 |
/** |
|
43 |
* @return an array of DataPortalContext to which the annotated test |
|
44 |
* class is applicable |
|
45 |
*/ |
|
46 |
DataPortalContext[] value(); |
|
47 |
} |
|
48 |
|
|
30 | 49 |
private final List<Runner> runners = new ArrayList<Runner>(); |
31 | 50 |
|
32 | 51 |
|
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/ExampleTest.java | ||
---|---|---|
17 | 17 |
import org.openqa.selenium.WebElement; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.dataportal.DataPortalContext; |
20 |
import eu.etaxonomy.dataportal.DataPortalContexts; |
|
20 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
|
21 | 21 |
|
22 | 22 |
@SuppressWarnings("deprecation") |
23 | 23 |
@DataPortalContexts( { DataPortalContext.cichorieae }) |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/CichorieaeSearchTest.java | ||
---|---|---|
17 | 17 |
import org.openqa.selenium.WebElement; |
18 | 18 |
|
19 | 19 |
import eu.etaxonomy.dataportal.DataPortalContext; |
20 |
import eu.etaxonomy.dataportal.DataPortalContexts; |
|
20 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
|
21 | 21 |
import eu.etaxonomy.dataportal.selenium.CdmDataPortalTestBase; |
22 | 22 |
|
23 | 23 |
@DataPortalContexts( { DataPortalContext.cichorieae }) |
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/CyprusSearchTest.java | ||
---|---|---|
13 | 13 |
import org.junit.Test; |
14 | 14 |
import org.openqa.selenium.By; |
15 | 15 |
import org.openqa.selenium.RenderedWebElement; |
16 |
import org.openqa.selenium.WebElement; |
|
17 | 16 |
|
18 | 17 |
import eu.etaxonomy.dataportal.DataPortalContext; |
19 |
import eu.etaxonomy.dataportal.DataPortalContexts; |
|
18 |
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
|
20 | 19 |
import eu.etaxonomy.dataportal.selenium.CdmDataPortalTestBase; |
21 | 20 |
|
22 | 21 |
/** |
Also available in: Unified diff
mving DataPortalContexts Annotation in to testsuite class