org.placelab.test
Class WeakTestResult

java.lang.Object
  extended byorg.placelab.test.WeakTestResult
Direct Known Subclasses:
TestResult

public abstract class WeakTestResult
extends java.lang.Object


Field Summary
protected  int errors
           
protected  int failures
           
protected  int successes
           
 
Constructor Summary
WeakTestResult()
           
 
Method Summary
 void assertTrue(TestableBase testable, boolean expected, boolean actual, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void assertTrue(TestableBase testable, int expected, int actual, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void assertTrue(TestableBase testable, long expected, long actual, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void assertTrue(TestableBase testable, java.lang.String expected, java.lang.String actual, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void differentObjects(TestableBase testable, java.lang.Object obj1, java.lang.Object obj2, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void equalObjects(TestableBase testable, java.lang.Object o1, java.lang.Object o2, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void errorCaught(TestableBase whoFailed, java.lang.Throwable t)
          Call this when your test catches an error or an exception
abstract  void exceptionExtra(java.lang.Throwable t)
           
 void fail(TestableBase whoFailed, java.lang.String whatHappened)
          Call this if a test has failed, whatHappened should be a description of the failure.
 void isNull(TestableBase testable, java.lang.Object o, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void notEqual(TestableBase testable, java.lang.String string1, java.lang.String string2, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
abstract  void print(java.lang.String msg)
           
 void sameObject(TestableBase testable, java.lang.Object obj1, java.lang.Object obj2, java.lang.String msg)
          Call this assertion to see if a test did the expected thing
 void summary()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failures

protected int failures

successes

protected int successes

errors

protected int errors
Constructor Detail

WeakTestResult

public WeakTestResult()
Method Detail

print

public abstract void print(java.lang.String msg)

exceptionExtra

public abstract void exceptionExtra(java.lang.Throwable t)

fail

public void fail(TestableBase whoFailed,
                 java.lang.String whatHappened)
Call this if a test has failed, whatHappened should be a description of the failure.


errorCaught

public void errorCaught(TestableBase whoFailed,
                        java.lang.Throwable t)
Call this when your test catches an error or an exception


summary

public void summary()

assertTrue

public void assertTrue(TestableBase testable,
                       int expected,
                       int actual,
                       java.lang.String msg)
Call this assertion to see if a test did the expected thing


assertTrue

public void assertTrue(TestableBase testable,
                       long expected,
                       long actual,
                       java.lang.String msg)
Call this assertion to see if a test did the expected thing


assertTrue

public void assertTrue(TestableBase testable,
                       java.lang.String expected,
                       java.lang.String actual,
                       java.lang.String msg)
Call this assertion to see if a test did the expected thing


assertTrue

public void assertTrue(TestableBase testable,
                       boolean expected,
                       boolean actual,
                       java.lang.String msg)
Call this assertion to see if a test did the expected thing


notEqual

public void notEqual(TestableBase testable,
                     java.lang.String string1,
                     java.lang.String string2,
                     java.lang.String msg)
Call this assertion to see if a test did the expected thing


sameObject

public void sameObject(TestableBase testable,
                       java.lang.Object obj1,
                       java.lang.Object obj2,
                       java.lang.String msg)
Call this assertion to see if a test did the expected thing


differentObjects

public void differentObjects(TestableBase testable,
                             java.lang.Object obj1,
                             java.lang.Object obj2,
                             java.lang.String msg)
Call this assertion to see if a test did the expected thing


isNull

public void isNull(TestableBase testable,
                   java.lang.Object o,
                   java.lang.String msg)
Call this assertion to see if a test did the expected thing


equalObjects

public void equalObjects(TestableBase testable,
                         java.lang.Object o1,
                         java.lang.Object o2,
                         java.lang.String msg)
Call this assertion to see if a test did the expected thing