Class ModuleTestExecution
java.lang.Object
org.springframework.modulith.test.ModuleTestExecution
- All Implemented Interfaces:
Iterable<ApplicationModule>
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns all base packages the current execution needs to use for component scanning, auto-configuration etc.Returns theApplicationModuleTest.BootstrapMode
to be used for the executions.Returns all module dependencies, based on the currentApplicationModuleTest.BootstrapMode
.Returns allApplicationModule
s registered as extra includes for the execution.Returns the primaryApplicationModule
to bootstrap.Returns allApplicationModules
of the application.int
hashCode()
boolean
iterator()
static Supplier<ModuleTestExecution>
void
verify()
Explicitly trigger the module structure verification.void
Verifies the setup of the module bootstrapped by this execution.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
of
-
getBasePackages
Returns all base packages the current execution needs to use for component scanning, auto-configuration etc.- Returns:
-
includes
-
getDependencies
Returns all module dependencies, based on the currentApplicationModuleTest.BootstrapMode
.- Returns:
-
verify
public void verify()Explicitly trigger the module structure verification. -
verifyModule
public void verifyModule()Verifies the setup of the module bootstrapped by this execution. -
getBootstrapMode
Returns theApplicationModuleTest.BootstrapMode
to be used for the executions.- Returns:
- will never be null.
-
getModule
Returns the primaryApplicationModule
to bootstrap.- Returns:
- the module will never be null.
-
getModules
Returns allApplicationModules
of the application.- Returns:
- the modules will never be null.
-
getExtraIncludes
Returns allApplicationModule
s registered as extra includes for the execution.- Returns:
- the extraIncludes will never be null.
-
iterator
- Specified by:
iterator
in interfaceIterable<ApplicationModule>
-
equals
-
hashCode
public int hashCode()
-