public interface IC2TestgenListener
TestGenerator
in order to receive status reports regarding the progress of test generation and
any errors that occurred during processing.
IC2TestgenListener
corresponds with IC2TestgenStatusReporter
.
Objects that are IC2TestgenStatusReporter
s are able to keep
IC2TestgenListeners
abreast of the status of the test generation operation.IC2TestgenStatusReporter
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ERROR
error status indicator
|
static int |
STATUS_SUCCESS
successful status indicator
|
Modifier and Type | Method and Description |
---|---|
void |
errorOccurred(String taskName,
String errorMsg,
Throwable error)
An error occured during test generation.
|
void |
percentComplete(int p) |
void |
statusReported(String taskName,
String statusMsg)
Status has been reported in regard to the specified task.
|
void |
taskEnded(String taskName)
A test generation task has been completed.
|
void |
taskStarted(String taskName)
A test generation task has begun.
|
void |
testgenEnded(int status,
String statusMsg)
Test generation has ended.
|
void |
testgenStarted()
Test generation has begun.
|
static final int STATUS_SUCCESS
static final int STATUS_ERROR
void testgenStarted()
void percentComplete(int p)
void testgenEnded(int status, String statusMsg)
status
- the status of the overall code generation operation -- one of
statusMsg
- a descriptive message corresponding to status
void taskStarted(String taskName)
taskName
- the name of the taskvoid statusReported(String taskName, String statusMsg)
taskName
- the name of the taskstatusMsg
- an informative messagevoid taskEnded(String taskName)
taskName
- the namne of the taskvoid errorOccurred(String taskName, String errorMsg, Throwable error)
testGenEnded(int, String)
is called
is the true indication of the success of the overall test generation operation.taskName
- the task that was being performed when the error occurrederrorMsg
- a descriptive message describing the error conditionerror
- a Throwable
that was caught during detection of the
error condition. This value will be null
if no exception
was thrown.© Copyright IBM Corp. 2013. All rights reserved.