There are two requirements that must be satisfied for this framework.
The first requirement is that a
repose-test.properties file is on the classpath when tests are run.
repose-test.properties file tells that framework what version of Repose, directories, host, and ports to use.
It should be in the Java properties file format like the following example:
Not all properties are strictly required.
In fact, most properties have reasonable defaults.
However, any property which takes an absolute path should be given a value.
# Required Properties
# Required (If Used) Properties
# Optional Properties
||The absolute path of the root directory to run tests under.
The user running the tests must have permission to read and write in this directory.
It is advised that this be the build directory of the build tool being used to run the tests (e.g.,
buildDir in Gradle).
Doing so enables the build tool to handle cleanup of any test resources.
||The absolute path of the home directory which will contain Repose artifacts, and possibly other Repose test structures.
||The absolute path of the directory which contains the configuration file templates.
||The absolute path to the Repose JAR file.
||The absolute path of the Repose Lint JAR file.
||The absolute path of the Repose
||The absolute path of the Glassfish JAR file.
||The absolute path of the Tomcat JAR file.
||The absolute path of the WAR file containing mock services.
||The version of Repose.
||The servlet container to run Repose in.
A value of
valve will run a standalone instance of Repose using an embedded container.
||The path of the directory relative to the
repose.home directory which will contain Repose configuration files.
||The Repose log file path relative to the
||The Repose Lint log file path relative to the
||The log filename path pattern relative to the
||The target hostname (usually
||The port number to start at when scanning for open ports.
||The max port number which can be used when scanning for open ports.
||The step size between workers when scanning for open ports.
||The name of a System property the value of which will be used as the worker ID.
The second requirement is that the Repose artifacts (e.g., JARs and EARs) must be placed in the directory specified by the
If they are located elsewhere, the
ReposeValveTest specification will not work.
However, other utilities provided by the framework may still be used.