|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.runner.TestConfigUtil
public final class TestConfigUtil
A utility class for Test Configuration based processes
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOG
An instance of logger associated with the test framework. |
| Constructor Summary | |
|---|---|
TestConfigUtil()
|
|
| Method Summary | |
|---|---|
static void |
loadConfigBeans(Class<?>... configClasses)
Load the config beans from the given config classes |
static void |
loadResourceProperties(Class<?> configClass,
Object classInstance)
Load the resource properties specified by TestProperties annotation |
static void |
loadTestBeanConfig(Class<?> testClass)
Load the test configurations using the provided TestConfigProvider annotation values |
static void |
loadTestConfigurations(Class<?> testClass,
Object testInstance)
Load the test configurations for the test class and associated the bean instance with the fields annotated with Provided annotation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOG
| Constructor Detail |
|---|
public TestConfigUtil()
| Method Detail |
|---|
public static void loadTestBeanConfig(Class<?> testClass)
TestConfigProvider annotation values
testClass -
public static void loadConfigBeans(Class<?>... configClasses)
throws IllegalArgumentException,
IllegalAccessException,
InvocationTargetException,
InstantiationException
configClasses -
IllegalArgumentException
IllegalAccessException
InvocationTargetException
InstantiationException
public static void loadResourceProperties(Class<?> configClass,
Object classInstance)
TestProperties annotation
configClass - classInstance -
public static void loadTestConfigurations(Class<?> testClass,
Object testInstance)
Provided annotation
testClass - the test class on which the fields needs to be settestInstance - a test instance of the test class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||