Project

General

Profile

« Previous | Next » 

Revision 991672a1

Added by Andreas Kohlbecker almost 13 years ago

more tests + firepath plugin

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/DataPortalContext.java
3 3
 * Copyright (C) 2009 EDIT
4 4
 * European Distributed Institute of Taxonomy
5 5
 * http://www.e-taxonomy.eu
6
 * 
6
 *
7 7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 8
 * See LICENSE.TXT at the top of this package for the full license terms.
9 9
 */
10 10
package eu.etaxonomy.dataportal;
11 11

  
12 12
import java.net.URI;
13
import java.net.URISyntaxException;
14 13
import java.util.UUID;
15 14

  
16 15
import org.apache.log4j.Logger;
......
20 19
 * TODO 2. let constructor read from a dataPortalTestContext.properties located in the jar (/dataportal-selenium-tests/src/main/resources/eu/etaxonomy/dataportal/DataPortalTest.properties)
21 20
 * TODO 3. DataPortalTest.properties should allow setting the defalut eu.etaxonomy.dataportal.selenium.CdmDataPortalTestBase.SYSTEM_PROPERTY_NAME_BROWSER
22 21
 * TODO 4. DataPortalTest.properties should allow setting webdriver.firefox.bin etc in order to circumven the need to set it by -Dwebdriver.firefox.bin
23
 * 
22
 *
24 23
 * @author a.kohlbecker
25 24
 *
26 25
 */
27 26
public enum DataPortalContext {
28 27

  
29
	cichorieae(""),
30
	palmae(""),
31
	cyprus("");
28
	cichorieae,
29
	palmae,
30
	cyprus,
31
	floramalesiana;
32 32

  
33 33
	URI baseUri;
34 34
	URI cdmServerUri;
......
37 37

  
38 38
	public final Logger logger = Logger.getLogger(DataPortalContext.class);
39 39

  
40
	private DataPortalContext(String dummy) {
41

  
40
	private DataPortalContext() {
42 41
		this.baseUri = TestConfiguration.getProperty(composePropertyKey("baseUri"), URI.class);
43 42
		this.cdmServerUri = TestConfiguration.getProperty(composePropertyKey("cdmServerUri"), URI.class);
44 43
		this.classificationUUID = TestConfiguration.getProperty(composePropertyKey("classificationUUID"), UUID.class);
45

  
46 44
	}
47 45

  
48 46
	private String composePropertyKey(String fieldName) {

Also available in: Unified diff