Uses of Class
com.foreach.across.test.support.AcrossTestContextBuilder
-
Uses of AcrossTestContextBuilder in com.foreach.across.test.support
Modifier and TypeMethodDescriptionAcrossTestContextBuilder.additionalModulePackageClasses
(Class<?>... classes) Type-safe alternative foradditionalModulePackages(String...)
where the packages of the classes will be added for module scanning.AcrossTestContextBuilder.additionalModulePackages
(String... packageNames) Additional packages that should be scanned for modules if no customModuleDependencyResolver
is configured.AcrossTestContextBuilder.configurer
(AcrossContextConfigurer... configurer) Add one or moreAcrossContextConfigurer
instances that are to be called after the initialAcrossContext
has been created.AcrossTestContextBuilder.dataSource
(DataSource dataSource) Set the core across datasource.AcrossTestContextBuilder.developmentMode
(boolean developmentMode) AcrossTestContextBuilder.dropFirst
(boolean dropFirst) Should the database be reset before bootstrapping theAcrossContext
.Add one or more types (classes, interfaces, annotations) that should be exposed in this test context.AcrossTestContextBuilder.installerDataSource
(DataSource installerDataSource) Set the installer datasource.AcrossTestContextBuilder.moduleConfigurationPackageClasses
(Class<?>... classes) Type-safe alternative formoduleConfigurationPackages(String...)
.AcrossTestContextBuilder.moduleConfigurationPackages
(String... packageNames) Add one or more custom packages that should be scanned forModuleConfiguration
classes.AcrossTestContextBuilder.moduleDependencyResolver
(ModuleDependencyResolver moduleDependencyResolver) Set theModuleDependencyResolver
that should be used for looking up modules by name.AcrossTestContextBuilder.modules
(AcrossModule... modules) Array ofAcrossModule
instances to add to the context.Array ofAcrossModule
names that should be configured.AcrossTestContextBuilder.properties
(Map<String, Object> properties) Add a properties map to the environment of the parentApplicationContext
.AcrossTestContextBuilder.properties
(Properties properties) Add a properties collection to the environment of the parentApplicationContext
.AcrossTestContextBuilder.properties
(org.springframework.core.env.PropertySource propertySource) Add aPropertySource
to the environment of the parentApplicationContext
.Set a property value on the environment of the parentApplicationContext
.Add one or more annotated classes to the parentApplicationContext
that is attached to theAcrossContext
.static AcrossTestContextBuilder
AcrossTestBuilders.standard()
Create a new builder for a standard (non-web)AcrossContext
.static AcrossTestContextBuilder
AcrossTestBuilders.standard
(boolean useTestDataSource) Create a new builder for a standard (non-web)AcrossContext
.AcrossTestContextBuilder.useTestDataSource
(boolean useTestDataSource) Should default test datasources be created.