Package io.github.cdiunit.internal
Class TestConfiguration
java.lang.Object
io.github.cdiunit.internal.TestConfiguration
Defines, how the WeldTestUrlDeployment should initialize Weld.
- Author:
- aschoerk
-
Constructor Summary
ConstructorsConstructorDescriptionTestConfiguration
(Class<?> testClass, Method testMethod) TestConfiguration
(Class<?> testClass, Method testMethod, Collection<Class<?>> additionalClasses) -
Method Summary
Modifier and TypeMethodDescriptionCollection<Class<?>>
Can be used by special runners to change the initialization of Weld.Returns the isolation level of the tests.Class<?>
The class containing the testsThe method to start.void
setTestMethod
(Method testMethod)
-
Constructor Details
-
TestConfiguration
public TestConfiguration(Class<?> testClass, Method testMethod, Collection<Class<?>> additionalClasses) -
TestConfiguration
-
-
Method Details
-
getTestClass
The class containing the tests- Returns:
- the class containing the tests.
-
getTestMethod
The method to start.- Returns:
- the test-method to start.
-
setTestMethod
-
getAdditionalClasses
Can be used by special runners to change the initialization of Weld.- Returns:
- classes to be created by weld if possible (if they are not annotations) or whose
AdditionalClasses
orActivatedAlternatives
are to be created additionally.
-
getIsolationLevel
Returns the isolation level of the tests.- Returns:
- the isolation level of the tests.
-