Class TestConfiguration

java.lang.Object
io.github.cdiunit.internal.TestConfiguration

public class TestConfiguration extends Object
Defines, how the WeldTestUrlDeployment should initialize Weld.
Author:
aschoerk
  • Constructor Details

    • TestConfiguration

      public TestConfiguration(Class<?> testClass, Method testMethod, Collection<Class<?>> additionalClasses)
    • TestConfiguration

      public TestConfiguration(Class<?> testClass, Method testMethod)
  • Method Details

    • getTestClass

      public Class<?> getTestClass()
      The class containing the tests
      Returns:
      the class containing the tests.
    • getTestMethod

      public Method getTestMethod()
      The method to start.
      Returns:
      the test-method to start.
    • setTestMethod

      public void setTestMethod(Method testMethod)
    • getAdditionalClasses

      public Collection<Class<?>> 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 or ActivatedAlternatives are to be created additionally.
    • getIsolationLevel

      public IsolationLevel getIsolationLevel()
      Returns the isolation level of the tests.
      Returns:
      the isolation level of the tests.