Package org.springframework.modulith.test
@NullMarked
package org.springframework.modulith.test
Integration test support for Spring Modulith
ApplicationModules.-
ClassDescriptionTest utilities to work with aggregates.Bootstraps the module containing the package of the test class annotated with
ApplicationModuleTest.An AssertJ-based extension ofPublishedEventsto obtain fluent assertions.Default implementation ofAssertablePublishedEvents.Default implementation ofPublishedEvents.Allows usingScenarioas method parameter in integration tests.Foundation for tests that would want to bootstrap tests slicing the application per application module.An unconditional auto-configuration registering anImportBeanDefinitionRegistrarto customize both the entity scan and auto-configuration packages to the packages defined by theModuleTestExecutionin the application context.ATypeExcludeFilterthat only selects types included in aModuleTestExecution, i.e. from the modules included in a particular test run.All Spring application events fired during the test execution.All application events of a given type that were fired during a test execution.AssertJAssertforPublishedEvents.JUnit 5Extensionfor standalone usage withoutApplicationModuleTest.Creates an instance ofPublishedEventsorAssertablePublishedEventsdepending on whether AssertJ is on the classpath or not.Provides instances ofPublishedEventsas test method parameters.A DSL to define integration testing scenarios for application modules.A JUnitInvocationInterceptorto register a default customizer to be applied to allScenarioinstances associated with that test case.JUnitParameterResolverforScenario.Utility methods to work with testApplicationModules.CustomApplicationModulesFactoryto bootstrap anApplicationModulesinstance only considering test code.