public class GroundTests
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_PACKAGE_PATH
The client package path in your Java IDE (Eclipse or NetBeans, etc).
|
static java.lang.String |
DEFAULT_REST_URI
The default dummy URI for a RESTful web service.
|
static java.lang.String |
SOURCE_CODE_ROOT
The root source directory in your Java IDE (Eclipse or NetBeans, etc).
|
static java.lang.String |
TEST_PACKAGE_PATH
The test package path in your Java IDE (Eclipse or NetBeans, etc).
|
Constructor and Description |
---|
GroundTests() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Reads a high-level XML test suite from the input file and, if no
errors are found, generates an output file containing the source code
for a JUnit test driver, using the grounding parameter to select a
particular grounding strategy, and the meta-check parameter to indicate
whether to generate extra service calls to verify full state and
transition behaviour.
|
public static java.lang.String SOURCE_CODE_ROOT
public static java.lang.String CLIENT_PACKAGE_PATH
public static java.lang.String TEST_PACKAGE_PATH
public static java.lang.String DEFAULT_REST_URI
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.IllegalArgumentException, org.jast.ast.ASTError, org.jast.ast.NodeError, SemanticError
args
- the XML high-level test suite file, containing a root
TestSuite node; and optionally, a concrete grounding format chosen
from: "Java" | "JAX-WS" | "JAX-RS" ("Java", by default), a boolean
meta-check flag indicating whether to verify all states and transitions
(true, by default); and after these, an optional service URI (needed
for REST grounding only) and 0..n Java package names in which the
generated test driver, and sources for the tested service client, are
to be found (the URI is distinguished by its "http" prefix; and any
package names are processed in order, with the first package assumed
to be the target package and further packages assumed to be source
packages).java.io.IOException
- if a file system related I/O error occurs.java.lang.IllegalArgumentException
- if an invalid argument is supplied.org.jast.ast.ASTError
- if an XML syntax error is found in the input.org.jast.ast.NodeError
- if marshalling or unmarshalling the model fails.SemanticError
- if a semantic error is detected in the model.