org.LexGrid.LexBIG.Impl.testUtility
Class ServiceHolder

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.testUtility.ServiceHolder

public class ServiceHolder
extends java.lang.Object

Singleton class for getting a LexBIGService for the JUnit test cases.

Version:
subversion $Revision: $ checked in on $Date: $
Author:
Dan Armbrust

Field Summary
static java.io.File testConfigFolder_
           
 
Method Summary
static void configureForSingleConfig()
          Use this to set up the tests for end user enviroment validation.
 void configureNext()
           
static java.util.Properties createPropertiesObject(TestServerConfig serverInfo, int i, java.io.File configFolder)
           
 LexBIGService getLexBIGService()
           
 java.util.ArrayList<TestServerConfig> getServerConfigs()
           
 boolean getSingleConfigMode()
           
static ServiceHolder instance()
          Use this to get an instance of the ServiceHolder.
 void removeCurrentConfigTestFolder()
           
 void removeTestFolder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testConfigFolder_

public static java.io.File testConfigFolder_
Method Detail

instance

public static ServiceHolder instance()
Use this to get an instance of the ServiceHolder. If 'configureForSingleConfig' has not been called, this will run the tests on all configured databases in the testConfig.props file.

Returns:

configureForSingleConfig

public static void configureForSingleConfig()
Use this to set up the tests for end user enviroment validation. Only runs the tests once, using their normal config file.


configureNext

public void configureNext()
                   throws LBException
Throws:
LBException

getServerConfigs

public java.util.ArrayList<TestServerConfig> getServerConfigs()

removeCurrentConfigTestFolder

public void removeCurrentConfigTestFolder()

removeTestFolder

public void removeTestFolder()

getLexBIGService

public LexBIGService getLexBIGService()

getSingleConfigMode

public boolean getSingleConfigMode()

createPropertiesObject

public static java.util.Properties createPropertiesObject(TestServerConfig serverInfo,
                                                          int i,
                                                          java.io.File configFolder)

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.