@Retention(value=RUNTIME) @Target(value=TYPE) public @interface MoonshineConfiguration
MoonshineTest. Allows to
specify configuration resources to use when starting Moonshine
framework.| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
arguments
Command line arguments.
|
boolean |
autoConfiguration
Allows to enable auto-configuration.
|
Class<? extends MoonshineConfigurator> |
configurator
Specifies external configurator for Moonshine.
|
MoonshineConfiguration.Alternatives[] |
forCartesianProductOf
Executes the test multiple times.
|
MoonshineConfiguration.Config[] |
forEach
Executes the test multiple times.
|
String |
fromString
In-place configuration.
|
boolean |
oneRequestPerClass
If true, a request (scope) per entire test class will be created,
default means that a request is created per method.
|
boolean |
skipDefault
Skip reading default configuration from '/default-config.xml' classpath resource.
|
String[] |
value
List of resources to use as configuration for
Moonshine. |
public abstract String[] value
Moonshine.public abstract MoonshineConfiguration.Config[] forEach
MoonshineConfiguration.Config.
For instance:
@MoonshineConfiguration(forEach =
@Config("/a.xml"),
@Config("/b.xml")
)
This will execute the test 2 times. Once with a.xml and the second tiem with b.xml configuration file.
public abstract MoonshineConfiguration.Alternatives[] forCartesianProductOf
MoonshineConfiguration.Config will be taken from
each MoonshineConfiguration.Alternatives list. The test will be run for every possible combination of Configs.
For instance:
@MoonshineConfiguration(forCartesianProductOf =
@Alternatives(
@Config("/a.xml"),
@Config("/b.xml")
),
@Alternatives(
@Config("/1.xml"),
@Config("/2.xml"),
@Config("/3.xml")
)
)
This will execute the test 6 times for
public abstract String fromString
public abstract boolean autoConfiguration
Auto configuration is automatically generated and consists of every top-level service found on classpath which does not require any configuration. It is always stored in ${configHome}/auto-config.xml file.
public abstract boolean skipDefault
public abstract boolean oneRequestPerClass
public abstract Class<? extends MoonshineConfigurator> configurator
Copyright © 2014 Atteo. All rights reserved.