org.openi.test
Class Util

java.lang.Object
  extended by org.openi.test.Util

public class Util
extends java.lang.Object

Util for tests - Isn't this an anti pattern?


Constructor Summary
Util()
           
 
Method Summary
static ProjectContext createTestProjectContext(java.lang.String username)
           
static ProjectContext createTestProjectContext(java.lang.String username, java.lang.String projectId)
           
static java.lang.String findTestDirectory()
           
static ProjectUser getTestProjectUser(java.lang.String userid)
           
static void initApplicationConfig()
           
static Analysis restoreAnalysis(java.lang.String analysisName)
           
static void setupLog4j()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

findTestDirectory

public static java.lang.String findTestDirectory()
Returns:
location of test directory - when tests are run from ant, this property is already set in CVS/product/src/build.xml, see the runtests task (${basedir}/test. If running anywhere else, you can set the system property TESTDIR, which takes precedence.

setupLog4j

public static void setupLog4j()

initApplicationConfig

public static void initApplicationConfig()

createTestProjectContext

public static ProjectContext createTestProjectContext(java.lang.String username)
Parameters:
string -
Returns:
Throws:
java.io.IOException

createTestProjectContext

public static ProjectContext createTestProjectContext(java.lang.String username,
                                                      java.lang.String projectId)

getTestProjectUser

public static ProjectUser getTestProjectUser(java.lang.String userid)

restoreAnalysis

public static Analysis restoreAnalysis(java.lang.String analysisName)
                                throws java.io.IOException
Throws:
java.io.IOException