Project

General

Profile

« Previous | Next » 

Revision a740abba

Added by Andreas Kohlbecker almost 13 years ago

licence comments, log4j, browser configurable via -Dbrowser=[firefox,iexplorer,chrome]

View differences:

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

  
......
7 13

  
8 14
/**
9 15
 * @author a.kohlbecker
10
 *
16
 * 
11 17
 */
12 18
public class DataPortalManager {
13
	
19

  
14 20
	static DataPortalManager managerInstance = null;
15
	
21

  
16 22
	private DataPortalContext currentDataPortalContext = cichorieae;
17
	
23

  
18 24
	public static void prepare() {
19
		if(managerInstance == null){
25
		if (managerInstance == null) {
20 26
			managerInstance = new DataPortalManager();
21 27
			managerInstance.setupDataPortal();
22 28
		}
23 29
	}
24
	
25
	public static DataPortalContext currentDataPortalContext(){
30

  
31
	public static DataPortalContext currentDataPortalContext() {
26 32
		prepare();
27 33
		return managerInstance.currentDataPortalContext;
28 34
	}
29 35

  
30 36
	private void setupDataPortal() {
31
		//TODO 
37
		// TODO
32 38
	}
33 39

  
34 40
}

Also available in: Unified diff