| java.lang.Object net.sourceforge.groboutils.mbtf.v1.engine.ErrorsImpl
ErrorsImpl | public class ErrorsImpl implements IErrors(Code) | | Default implementation of IErrors. Designed so that the same object can
be reused.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:26 $ since: June 12, 2002 |
addError | public void addError(String msg)(Code) | | Add an error to the list of current errors. Validation methods that
register errors will not halt the current path's testing, but the error
will be listed in the report with the associated path where the error
condition occured.
Errors should be registered when an error occurs in the system, but
the system can continue processing the path.
Parameters: msg - a human-readable error message. |
addError | public void addError(String msg, Throwable t)(Code) | | Add an error associated with a Throwable to the list of current errors.
Validation methods that register errors will halt the current path's
testing.
Errors should be registered when an error occurs in the system, but
the system can continue processing the path.
Parameters: msg - a human-readable error message. Parameters: t - the exception associated with the error. |
addFailure | public void addFailure(String msg)(Code) | | Add a failure to the list of current errors. Validation methods that
register failures will halt the current path's testing. This method
will not throw an exception, so validation processing must leave the
method on its own.
Failures should be registered when a non-recoverable error occurs in the
system. The framework may still process other paths, though.
Parameters: msg - a human-readable error message. |
addFailure | public void addFailure(String msg, Throwable t)(Code) | | Add a failure associated with a Throwable to the list of current errors.
Validation methods that register failures will halt the current path's
testing. This method will not throw an exception, so validation
processing must leave the method on its own.
Failures should be registered when a non-recoverable error occurs in the
system. The framework may still process other paths, though.
Parameters: msg - a human-readable error message. Parameters: t - the exception associated with the error. |
addWarning | public void addWarning(String msg)(Code) | | Add a warning to the list of current warnings. Warnings will not
halt the testing process, and will not register an error.
Warnings should be used when a questionable system state occurs, or if
the tester wants to perform debugging.
Parameters: msg - a human-readable message. |
fail | public void fail(String msg) throws TestFailRuntimeException(Code) | | Add a failure to the list of current errors. Validation methods that
register failures will halt the current path's testing. This method
will not throw a TestFailRuntimeException, so validation
processing must leave the method on its own.
Failures should be registered when a non-recoverable error occurs in the
system. The framework may still process other paths, though.
Parameters: msg - a human-readable error message. exception: TestFailRuntimeException - allows for easy exiting of aburried method call stack. |
fail | public void fail(String msg, Throwable t) throws TestFailRuntimeException(Code) | | Add a failure associated with a Throwable to the list of current errors.
Validation methods that register failures will halt the current path's
testing. This method will throw a TestFailRuntimeException to
allow for an easy exit from a burried method call stack.
Failures should be registered when a non-recoverable error occurs in the
system. The framework may still process other paths, though.
Parameters: msg - a human-readable error message. Parameters: t - the exception associated with the error. exception: TestFailRuntimeException - allows for easy exiting of aburried method call stack. |
getErrors | public IError[] getErrors()(Code) | | Retrieve all registered errors.
|
halt | public void halt(String msg)(Code) | | Immediately stop the path processing, and do not continue other paths
for processing. This will throw a RuntimeException.
Halts should be a last-recourse to indicate that the system cannot be
used for further testing.
Parameters: msg - a human-readable error message. exception: TestHaltRuntimeException - will always be generated. |
isHaltPath | public boolean isHaltPath()(Code) | | |
isHaltTests | public boolean isHaltTests()(Code) | | |
|
|