org.openi.test
Class Util
java.lang.Object
org.openi.test.Util
public class Util
- extends java.lang.Object
Util for tests - Isn't this an anti pattern?
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
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