public final class TestConfigUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG
An instance of logger associated with the test framework.
|
| Constructor and Description |
|---|
TestConfigUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 associate the bean instance with the fields annotated with
Provided or Inject and/or Named annotation |
protected static final org.slf4j.Logger LOG
public static void loadTestBeanConfig(Class<?> testClass)
TestConfigProvider annotation valuestestClass - public static void loadConfigBeans(Class<?>... configClasses) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException, InstantiationException
configClasses - IllegalArgumentExceptionIllegalAccessExceptionInvocationTargetExceptionInstantiationExceptionpublic static void loadResourceProperties(Class<?> configClass, Object classInstance)
TestProperties annotationconfigClass - classInstance - public static void loadTestConfigurations(Class<?> testClass, Object testInstance)
Provided or Inject and/or Named annotationtestClass - the test class on which the fields needs to be settestInstance - a test instance of the test classCopyright © 2014. All rights reserved.