@Internal
public class MicronautTestValue
extends java.lang.Object
| Constructor and Description |
|---|
MicronautTestValue(java.lang.Class<?> application,
java.lang.String[] environments,
java.lang.String[] packages,
java.lang.String[] propertySources,
boolean rollback,
boolean transactional,
boolean rebuildContext,
java.lang.Class<? extends io.micronaut.context.ApplicationContextBuilder>[] contextBuilder,
TransactionMode transactionMode,
boolean startApplication)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
application() |
java.lang.Class<? extends io.micronaut.context.ApplicationContextBuilder>[] |
contextBuilder()
The application context builder to use to construct the context.
|
java.lang.String[] |
environments() |
java.lang.String[] |
packages() |
java.lang.String[] |
propertySources()
One or many references to classpath.
|
boolean |
rebuildContext()
Whether to rebuild the application context before each test method.
|
boolean |
rollback()
Whether to rollback (if possible) any data access code between each test execution.
|
boolean |
startApplication() |
boolean |
transactional()
Allow disabling or enabling of automatic transaction wrapping.
|
TransactionMode |
transactionMode()
The
TransactionMode. |
@Creator
public MicronautTestValue(java.lang.Class<?> application,
java.lang.String[] environments,
java.lang.String[] packages,
java.lang.String[] propertySources,
boolean rollback,
boolean transactional,
boolean rebuildContext,
java.lang.Class<? extends io.micronaut.context.ApplicationContextBuilder>[] contextBuilder,
TransactionMode transactionMode,
boolean startApplication)
application - The application class of the applicationenvironments - The environments to use.packages - The packages to consider for scanning.propertySources - The property sourcesrollback - True if changes should be rolled backtransactional - Whether to wrap a test in a transaction.rebuildContext - true if the application context should be rebuilt for each test methodcontextBuilder - The buildertransactionMode - The transaction modestartApplication - Whether the start the apppublic java.lang.Class<?> application()
public java.lang.String[] environments()
public java.lang.String[] packages()
public java.lang.String[] propertySources()
public boolean rollback()
public boolean transactional()
public boolean rebuildContext()
public java.lang.Class<? extends io.micronaut.context.ApplicationContextBuilder>[] contextBuilder()
public TransactionMode transactionMode()
TransactionMode.public boolean startApplication()