Annotation Interface ModuleSlicing
@Documented
@Retention(RUNTIME)
@Target(TYPE)
@TypeExcludeFilters(ModuleTypeExcludeFilter.class)
@ImportAutoConfiguration(ModuleTestAutoConfiguration.class)
@ExtendWith({PublishedEventsParameterResolver.class,ScenarioParameterResolver.class})
@TestInstance(PER_CLASS)
@TestConstructor(autowireMode=ALL)
public @interface ModuleSlicing
Foundation for tests that would want to bootstrap tests slicing the application per application module. Furthermore
it defines
- Since:
- 2.1
- Author:
- Oliver Drotbohm
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionClass<?>[]To define the main application class in case the test is located outside a module package and that class doesn't reside in any of the parent packages.String[]Module names of modules to be included in the test run independent of what themode()defines.Logical name of the module to be bootstrapped in caseApplicationModuleTestwill be used outside a module packagebooleanWhether to automatically verify the module structure for validity.
-
Element Details
-
value
- Default:
- STANDALONE
-
mode
- Default:
- STANDALONE
-
verifyAutomatically
boolean verifyAutomaticallyWhether to automatically verify the module structure for validity.- Returns:
- Default:
- true
-
extraIncludes
String[] extraIncludesModule names of modules to be included in the test run independent of what themode()defines.- Returns:
- Default:
- {}
-
module
String moduleLogical name of the module to be bootstrapped in caseApplicationModuleTestwill be used outside a module package- Returns:
- will never be null.
- Since:
- 1.3
- Default:
- ""
-
classes
Class<?>[] classesTo define the main application class in case the test is located outside a module package and that class doesn't reside in any of the parent packages.- Returns:
- will never be null.
- Since:
- 1.3
- See Also:
- Default:
- {}
-