frysk.junit
Class Result

java.lang.Object
  extended by frysk.junit.Result
Direct Known Subclasses:
Result.Problem

 class Result
extends Object

Possible results from running a test; see POSIX and dejagnu for definition of states.


Nested Class Summary
(package private) static class Result.Problem
          A problem result.
 
Field Summary
(package private) static Result PASS
          POSIX: PASS.
private  String[] what
           
 
Constructor Summary
protected Result(String what)
           
protected Result(String[] what)
           
protected Result(String what, Result unresolved)
           
 
Method Summary
(package private) static Result.Problem fail(String what, Result.Problem unresolved, Throwable t)
          POSIX: FAIL (RESOLVED).
(package private) static Result.Problem fail(String what, Throwable t)
          POSIX: FAIL.
(package private)  String getWhat()
           
(package private) static Result.Problem pass(String bug)
          POSIX: PASS (RESOLVED).
(package private)  void println()
           
 String toString()
           
(package private) static Result.Problem unresolved(String bug)
          POSIX: UNRESOLVED.
(package private) static Result.Problem unsupported(String why)
          POSIX: UNSUPPORTED.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PASS

static final Result PASS
POSIX: PASS.


what

private final String[] what
Constructor Detail

Result

protected Result(String what)

Result

protected Result(String[] what)

Result

protected Result(String what,
                 Result unresolved)
Method Detail

pass

static final Result.Problem pass(String bug)
POSIX: PASS (RESOLVED).


fail

static final Result.Problem fail(String what,
                                 Throwable t)
POSIX: FAIL.


fail

static final Result.Problem fail(String what,
                                 Result.Problem unresolved,
                                 Throwable t)
POSIX: FAIL (RESOLVED).


unresolved

static Result.Problem unresolved(String bug)
POSIX: UNRESOLVED.


unsupported

static final Result.Problem unsupported(String why)
POSIX: UNSUPPORTED.


toString

public String toString()
Overrides:
toString in class Object

getWhat

String getWhat()

println

void println()