Testing

Configuration that applies to the testing libraries.

Property Default Description

causeway.testing.fixtures.
fixture-scripts-specification.
context-class

Specifies the base package from which to search for fixture scripts.

Either this or packagePrefix must be specified. This property is used by preference.

@see #getPackagePrefix()

causeway.testing.fixtures.
fixture-scripts-specification.
multiple-execution-strategy

Indicates whether, if a fixture script (or more precisely any other fixture scripts of the same class) is encountered more than once in a graph of dependencies, it should be executed again or skipped.

The default is to fixture scripts are executed only once per class.

Note that this policy can be overridden on a fixture-by-fixture basis if the fixture implements FixtureScriptWithExecutionStrategy.

causeway.testing.fixtures.
fixture-scripts-specification.
non-persisted-objects-strategy

Indicates whether objects that are returned as a fixture result should be automatically persisted if required (the default) or not.

causeway.testing.fixtures.
fixture-scripts-specification.
package-prefix

Specifies the base package from which to search for fixture scripts.

Either this or #getContextClass() must be specified; #getContextClass() is used by preference.

@see #getContextClass()

causeway.testing.fixtures.
fixture-scripts-specification.
recreate

null

causeway.testing.fixtures.
fixture-scripts-specification.
run-script-default

null

causeway.testing.fixtures.
initial-script

Indicates the fixture script class to run initially.

Intended for use when prototyping against an in-memory database (but will run in production mode as well if required).