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 AutoCloseable
doStart(Class<?> clazz, Annotation[] annotations)
String
getName()
AutoCloseable
start(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:EnvironmentProvider
Starts the environment represented by this implementation.- Specified by:
start
in 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)
-
-