Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

dk.rode.thesis.meta.test
Interface Testable

All Known Implementing Classes:
AllTests, IntegrityTests, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main, Main

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.

Author:
Gunni Rode / rode.dk

Method Summary
 boolean test(Log out, Arguments arguments)
          Performs the specific tests and report the outcome to the log supplied as log.
 

Method Detail

test

boolean test(Log out,
             Arguments arguments)
             throws Exception
Performs the specific tests and report the outcome to the log supplied as log.

Arguments to control log-level:

Parameters:
out - The log to report the test outcome to; cannot be null.
arguments - Additional arguments, if any.
Returns:
True if the tests succeeded, false if not.
Throws:
NullPointerException - If out is null.
Exception - In case an unexpected error occurs.

Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.