|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.bpelunit.framework.BPELUnitRunner
public abstract class BPELUnitRunner
The BPELUnit Runner lies at the heart of BPELUnit. To execute BPELUnit tests, the runner must be subclasses, then instantiated and run.
BPELUnit Core options:
Option | Values |
SKIP_UNKNOWN_EXTENSIONS | If set to "true", this option causes BPELUnit to ignore extensions with classes it cannot find in the current CLASSPATH. If set to "false" (default), BPELUnit fails when encountering extensions with unknown classes. |
GLOBAL_TIMEOUT | The timeout in milliseconds (ms) for every send/receive operation. For example, a synchronous send will wait for this time before it fails when not receiving an answer. The default is 25000 (25 seconds) |
HALT_ON_ERROR | If set to "true", this option causes BPELUnit to stop after the first test case error. The default is false. |
HALT_ON_FAILURE | If set to "true", this option causes BPELUnit to stop after the first test case failure. The default is false. |
Field Summary | |
---|---|
static java.lang.String |
GLOBAL_TIMEOUT
|
static java.lang.String |
HALT_ON_ERROR
|
static java.lang.String |
HALT_ON_FAILURE
|
static java.lang.String |
MEASURE_COVERAGE
|
static java.lang.String |
SKIP_UNKNOWN_EXTENSIONS
|
Constructor Summary | |
---|---|
BPELUnitRunner()
|
Method Summary | |
---|---|
abstract void |
configureCoverageTool()
Called by initialize() to configure the measurement of coverage. |
abstract void |
configureDeployers()
Called by initialize() to configure the deployers |
abstract void |
configureExtensions()
Called by initialize() to configure the extensions |
abstract void |
configureInit()
Called by initialize() before all other configuration methods. |
abstract void |
configureLogging()
Called by initialize() to configure the logging system. |
abstract IBPELDeployer |
createNewDeployer(java.lang.String type)
Creates a new deployer instance for the given deployer type |
abstract IHeaderProcessor |
createNewHeaderProcessor(java.lang.String name)
Creates a new header processor instance for the given name |
abstract ISOAPEncoder |
createNewSOAPEncoder(java.lang.String styleEncoding)
Creates a new SOAP encoder for the given style and encoding |
static CoverageMeasurementTool |
getCoverageMeasurmentTool()
|
static int |
getTimeout()
Returns the configured timeout |
void |
initialize(java.util.Map<java.lang.String,java.lang.String> options)
Initializes BPELUnit. |
static boolean |
isHaltOnError()
Returns whether BPELUnit halts on error |
static boolean |
isHaltOnFailure()
Returns whether BPELUnit halts on failure |
static boolean |
isSkipUnknownExtensions()
Returns whether unknown extensions should be skipped |
net.bpelunit.framework.model.test.TestSuite |
loadTestSuite(java.io.File suiteFile)
Main entry point into the BPELUnit testing functionality. |
static boolean |
measureTestCoverage()
|
static void |
setCoverageMeasurmentTool(CoverageMeasurementTool tool)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SKIP_UNKNOWN_EXTENSIONS
public static final java.lang.String GLOBAL_TIMEOUT
public static final java.lang.String HALT_ON_ERROR
public static final java.lang.String HALT_ON_FAILURE
public static final java.lang.String MEASURE_COVERAGE
Constructor Detail |
---|
public BPELUnitRunner()
Method Detail |
---|
public void initialize(java.util.Map<java.lang.String,java.lang.String> options) throws net.bpelunit.framework.exception.ConfigurationException
options
- options (see class javadoc)
net.bpelunit.framework.exception.ConfigurationException
- home directory not found, problem while reading extensions or
finding classes linked in extensions, or no xml parser found.public abstract void configureInit() throws net.bpelunit.framework.exception.ConfigurationException
net.bpelunit.framework.exception.ConfigurationException
public abstract void configureLogging() throws net.bpelunit.framework.exception.ConfigurationException
net.bpelunit.framework.exception.ConfigurationException
public abstract void configureExtensions() throws net.bpelunit.framework.exception.ConfigurationException
net.bpelunit.framework.exception.ConfigurationException
public abstract void configureDeployers() throws net.bpelunit.framework.exception.ConfigurationException
net.bpelunit.framework.exception.ConfigurationException
public abstract void configureCoverageTool() throws net.bpelunit.framework.exception.ConfigurationException
net.bpelunit.framework.exception.ConfigurationException
public net.bpelunit.framework.model.test.TestSuite loadTestSuite(java.io.File suiteFile) throws net.bpelunit.framework.exception.SpecificationException
suiteFile
- absolute or relative (to the **current** working directory)
path to the .bpts file.
net.bpelunit.framework.exception.SpecificationException
- A problem with the test suite file or xmlpublic abstract IBPELDeployer createNewDeployer(java.lang.String type) throws net.bpelunit.framework.exception.SpecificationException
type
- name of the deployer
net.bpelunit.framework.exception.SpecificationException
public abstract IHeaderProcessor createNewHeaderProcessor(java.lang.String name) throws net.bpelunit.framework.exception.SpecificationException
name
- name of the header processor
net.bpelunit.framework.exception.SpecificationException
public abstract ISOAPEncoder createNewSOAPEncoder(java.lang.String styleEncoding) throws net.bpelunit.framework.exception.SpecificationException
styleEncoding
- style and encoding
net.bpelunit.framework.exception.SpecificationException
public static int getTimeout()
public static boolean isSkipUnknownExtensions()
public static boolean isHaltOnError()
public static boolean isHaltOnFailure()
public static boolean measureTestCoverage()
public static void setCoverageMeasurmentTool(CoverageMeasurementTool tool)
public static CoverageMeasurementTool getCoverageMeasurmentTool()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |