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
Modifier and TypeClassDescription(package private) static class
CustomApplicationModulesFactory
to bootstrap anApplicationModules
instance only considering test code. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationModules
Creates anApplicationModules
instance from the given application class but only inspecting the test code.static ApplicationModules
Creates anApplicationModules
instance from the given package but only inspecting the test code.
-
Constructor Details
-
TestApplicationModules
public TestApplicationModules()
-
-
Method Details
-
of
Creates anApplicationModules
instance 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 anApplicationModules
instance 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
-