java.lang.Object
org.springframework.modulith.test.ModuleTestExecution
- All Implemented Interfaces:
Iterable<org.springframework.modulith.core.ApplicationModule>
public class ModuleTestExecution
extends Object
implements Iterable<org.springframework.modulith.core.ApplicationModule>
- Author:
- Oliver Drotbohm, Lukas Dohmen
-
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.springframework.modulith.core.JavaPackagesReturns all base packages the current execution needs to use for component scanning, auto-configuration etc.Returns theApplicationModuleTest.BootstrapModeto be used for the executions.List<org.springframework.modulith.core.ApplicationModule>Returns all module dependencies, based on the currentApplicationModuleTest.BootstrapMode.List<org.springframework.modulith.core.ApplicationModule>Returns allApplicationModules registered as extra includes for the execution.org.springframework.modulith.core.ApplicationModuleReturns the primaryApplicationModuleto bootstrap.org.springframework.modulith.core.ApplicationModulesReturns allApplicationModulesof the application.inthashCode()booleanbooleanisIncludedInExecution(org.springframework.modulith.core.ApplicationModuleIdentifier identifier) Returns whether the module with the given identifier is included in the current execution.Iterator<org.springframework.modulith.core.ApplicationModule>iterator()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
public org.springframework.modulith.core.JavaPackages 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
public org.springframework.modulith.core.ApplicationModule getModule()Returns the primaryApplicationModuleto bootstrap.- Returns:
- the module will never be null.
-
getModules
public org.springframework.modulith.core.ApplicationModules 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.
-
isIncludedInExecution
public boolean isIncludedInExecution(org.springframework.modulith.core.ApplicationModuleIdentifier identifier) Returns whether the module with the given identifier is included in the current execution.- Parameters:
identifier- must not be null.- Since:
- 2.0
-
iterator
-
equals
-
hashCode
public int hashCode()
-