Class BaseEnvironmentProvider
- java.lang.Object
-
- org.talend.sdk.component.junit.environment.BaseEnvironmentProvider
-
- All Implemented Interfaces:
EnvironmentProvider
- Direct Known Subclasses:
ClassLoaderEnvironment,ContextualEnvironment
public abstract class BaseEnvironmentProvider extends Object implements EnvironmentProvider
-
-
Constructor Summary
Constructors Constructor Description BaseEnvironmentProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AutoCloseabledoStart(Class<?> clazz, Annotation[] annotations)StringgetName()AutoCloseablestart(Class<?> clazz, Annotation[] annotations)Starts the environment represented by this implementation.
-
-
-
Constructor Detail
-
BaseEnvironmentProvider
public BaseEnvironmentProvider()
-
-
Method Detail
-
start
public final AutoCloseable start(Class<?> clazz, Annotation[] annotations)
Description copied from interface:EnvironmentProviderStarts the environment represented by this implementation.- Specified by:
startin interfaceEnvironmentProvider- Parameters:
clazz- the test class.annotations- the current annotations which can own environment configuration.- Returns:
- a closeable to release current environment.
-
doStart
protected abstract AutoCloseable doStart(Class<?> clazz, Annotation[] annotations)
-
-