Class ModuleTestExecution
java.lang.Object
org.springframework.modulith.test.ModuleTestExecution
- All Implemented Interfaces:
Iterable<ApplicationModule>
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns all base packages the current execution needs to use for component scanning, auto-configuration etc.Returns theApplicationModuleTest.BootstrapModeto be used for the executions.Returns all module dependencies, based on the currentApplicationModuleTest.BootstrapMode.Returns allApplicationModules registered as extra includes for the execution.Returns the primaryApplicationModuleto bootstrap.Returns allApplicationModulesof the application.inthashCode()booleaniterator()static Supplier<ModuleTestExecution>voidverify()Explicitly trigger the module structure verification.voidVerifies the setup of the module bootstrapped by this execution.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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.BootstrapModeto be used for the executions.- Returns:
- will never be null.
-
getModule
Returns the primaryApplicationModuleto bootstrap.- Returns:
- the module will never be null.
-
getModules
Returns allApplicationModulesof the application.- Returns:
- the modules will never be null.
-
getExtraIncludes
Returns allApplicationModules registered as extra includes for the execution.- Returns:
- the extraIncludes will never be null.
-
iterator
- Specified by:
iteratorin interfaceIterable<ApplicationModule>
-
equals
-
hashCode
public int hashCode()
-