Class TestApplicationModules
java.lang.Object
org.springframework.modulith.test.TestApplicationModules
Utility methods to work with test
ApplicationModules. Not intended public API!- Author:
- Oliver Drotbohm
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classCustomApplicationModulesFactoryto bootstrap anApplicationModulesinstance only considering test code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationModulesCreates anApplicationModulesinstance from the given application class but only inspecting the test code.static ApplicationModulesCreates anApplicationModulesinstance from the given package but only inspecting the test code.
-
Constructor Details
-
TestApplicationModules
public TestApplicationModules()
-
-
Method Details
-
of
Creates anApplicationModulesinstance from the given package but only inspecting the test code.- Parameters:
basePackage- must not be null or empty.- Returns:
- will never be null.
-
of
Creates anApplicationModulesinstance from the given application class but only inspecting the test code.- Parameters:
applicationClass- must not be null or empty.- Returns:
- will never be null.
- Since:
- 1.2
-