|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--com.strangelight.unit_test.ClassTester
A class for running unit tests on classes which implement the _Testable
interface. A ClassTester is a Vector
which contains a list of classes to test. Each element in the
ClassTester must be an object which "refers" to a class which
implements the _Testable
interface. An object
"refers" to such a class in one of three ways:
java.lang.Class
which encapsulates the class."outerClass$innerClass"
, not as
"outerClass.innerClass"
!)_Testable
and therefore
cannot explicitly be used to test itself. However, it does run a number of
internal self-tests whenever run_tests()
is called.
Field Summary |
Fields inherited from class java.util.Vector |
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
ClassTester()
|
|
ClassTester(java.util.Collection objects_to_test)
|
Method Summary | |
void |
clear_messages()
|
java.lang.String |
get_messages()
Get diagnostic messages. |
boolean |
run_tests()
Tests all of the classes in this ClassTester (by calling the static _test_class() methods of each one). |
Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
iterator, listIterator, listIterator |
Constructor Detail |
public ClassTester(java.util.Collection objects_to_test)
public ClassTester()
Method Detail |
public java.lang.String get_messages()
public void clear_messages()
public boolean run_tests() throws java.lang.ClassNotFoundException
true
on success, false
otherwise. On failure, get_messages()
may contain useful diagnostic messages.
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |