public abstract class AbstractFeatureTest<F extends AbstractIntegrationFeature> extends AbstractXTest
AbstractIntegrationFeature
Constructor and Description |
---|
AbstractFeatureTest() |
Modifier and Type | Method and Description |
---|---|
protected void |
destroyFeature(F feature)
Destroys the provided
AbstractIntegrationFeature instance and also destroys its dependent features if any |
protected <T extends AbstractIntegrationFeature> |
getFeatureClassName(Class<T> featureClass)
Utility method to get the class name of the feature class (to be used when creating featurePropertyMap to be
provided to the initFeature(AbstractIntegrationFeature, Map) method
|
protected F |
initFeature(F feature)
Initializes the provided
AbstractIntegrationFeature instance and also creates and initializes its
dependent features if any |
protected F |
initFeature(F feature,
Map<String,Properties> featurePropertyMap)
Initializes the provided
AbstractIntegrationFeature instance and also creates and initializes its
dependent features if any. |
protected F |
initFeature(F feature,
Properties featureProperties)
Initializes the provided
AbstractIntegrationFeature instance and also creates and initializes its
dependent features if any. |
afterClass, beforeClass, doAfterMethod, doBeforeMethod, doOnAfterClass, doOnBeforeClass, doSetupBeforeMethod, getLogger, getServerConfig, setUp, tearDown
run, setApplicationContext, springTestContextAfterTestClass, springTestContextAfterTestMethod, springTestContextBeforeTestClass, springTestContextBeforeTestMethod, springTestContextPrepareTestInstance
protected final F initFeature(F feature) throws Exception
AbstractIntegrationFeature
instance and also creates and initializes its
dependent features if anyfeature
- feature instance to be initializedException
- on failureprotected final F initFeature(F feature, Properties featureProperties) throws Exception
AbstractIntegrationFeature
instance and also creates and initializes its
dependent features if any. Additionally this will set the provided properties instance as the properties of the
main feature.feature
- feature instance to be initializedfeatureProperties
- Properties
instance to be set to the featureException
- on failureprotected final F initFeature(F feature, Map<String,Properties> featurePropertyMap) throws Exception
AbstractIntegrationFeature
instance and also creates and initializes its
dependent features if any. Additionally this will set the provided properties to the corresponding feature
instances.feature
- feature instance to be initializedfeaturePropertyMap
- map which has feature class names as keys and the Properties
instances to be
set as valuesException
- on failureprotected final <T extends AbstractIntegrationFeature> String getFeatureClassName(Class<T> featureClass)
T
- feature typefeatureClass
- feature class to get the class nameprotected final void destroyFeature(F feature)
AbstractIntegrationFeature
instance and also destroys its dependent features if anyfeature
- feature instance to be destroyedCopyright © 2016–2019 AdroitLogic. All rights reserved.