edu.byu.ece.edif.test
Class AbstractTestClass

java.lang.Object
  extended by edu.byu.ece.edif.test.AbstractTestClass
Direct Known Subclasses:
ExampleTest

public class AbstractTestClass
extends java.lang.Object

An abstract test class. Test classes should extend this class. The overridden constructor should call super(). Any public methods annotated with

Version:
$Id: AbstractTestClass.java 4 2008-04-16 22:31:52Z mrspud $
Author:
Jonathan Johnson

Field Summary
(package private)  TestSuite _testSuite
          The TestSuite that is running the tests in an extended class.
 
Constructor Summary
AbstractTestClass(TestSuite suite)
           
 
Method Summary
protected  void assertEqual(java.lang.Object obj1, java.lang.Object obj2)
          Add an error if the passed in objects are not equal by the == operator.
protected  void assertFalse(boolean condition)
          Add an error if the passed in boolean is not false.
protected  void assertTrue(boolean condition)
          Add an error if the passed in boolean is not true.
protected  void assertUnequal(java.lang.Object obj1, java.lang.Object obj2)
          Add an error if the passed in objects are not equal by the == operator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_testSuite

TestSuite _testSuite
The TestSuite that is running the tests in an extended class.

Constructor Detail

AbstractTestClass

public AbstractTestClass(TestSuite suite)
Method Detail

assertEqual

protected void assertEqual(java.lang.Object obj1,
                           java.lang.Object obj2)
Add an error if the passed in objects are not equal by the == operator.

Parameters:
obj1 - first object to compare
obj2 - second object to compare

assertFalse

protected void assertFalse(boolean condition)
Add an error if the passed in boolean is not false.

Parameters:
condition - the boolean to test

assertTrue

protected void assertTrue(boolean condition)
Add an error if the passed in boolean is not true.

Parameters:
condition - the boolean to test

assertUnequal

protected void assertUnequal(java.lang.Object obj1,
                             java.lang.Object obj2)
Add an error if the passed in objects are not equal by the == operator.

Parameters:
obj1 - first object to compare
obj2 - second object to compare