|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Testable
A testable class is used to perform overall
functional tests, reporting the results to a
log using the test(Log, Arguments) method,
but is NOT meant as a replacement for unit testing,
for example using JUnit. The tests performed by implementations
of this interface normally have a higher level or granularity
compared to unit testing.
In case the tests succeeds, true is returned from the method; in case the tests fails, false is returned. The method may also throw an exception, in which case the tests are concluded to have failed as well.
| Method Summary | |
|---|---|
boolean |
test(Log out,
Arguments arguments)
Performs the specific tests and report the outcome to the log supplied as log. |
| Method Detail |
|---|
boolean test(Log out,
Arguments arguments)
throws Exception
log supplied as log. Arguments to control log-level:
-log: a boolean value (as a string) indicating if
class logging is enabled for relevant classes.
-log.verbose: a boolean value (as a string) indicating
if class logging is enabled for relevant classes that generates
verbose output.
out - The log to report the test outcome to; cannot be null.arguments - Additional arguments, if any.
NullPointerException - If out is null.
Exception - In case an unexpected error occurs.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||