public class TestEnvironmentInitializers extends Object
| Constructor and Description |
|---|
TestEnvironmentInitializers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
add(TestEnvironmentInitializer initializer)
Installs a new initializer.
|
static void |
initTestEnvironment(TestCase testCase)
Calls all initializers for the given TestCase before the test has been run.
|
static void |
restoreOriginalEnvironment(TestCase testCase)
Calls all initializers for the given TestCase after the test has been run.
|
public static void add(TestEnvironmentInitializer initializer)
initializer - the initializer to installpublic static void initTestEnvironment(TestCase testCase) throws Exception
testCase - the TestCase to initialize the environment forException - if something went horribly wrongpublic static void restoreOriginalEnvironment(TestCase testCase) throws Exception
testCase - the TestCase to restore the old environment forException - if something went horribly wrongCopyright © 2019 TopQuadrant, Inc.. All rights reserved.