|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.framework.TestCase
|
+--org.chwf.servlet.mock.ReflectingTestCase
A test case using reflection to verify that all public methods of a class are tested. It also enforces certain naming conventions on the test class.
| Constructor Summary | |
ReflectingTestCase(java.lang.String name,
java.lang.Class testedClass)
Constructor. |
|
| Method Summary | |
void |
testWhetherAllMethodsAreTested()
Ensure that public methods are tested. |
void |
testWhetherClassAndTestNameMatches()
Ensure that the test class's fully qualified name is in the form "test.package.TestedClassTest" |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReflectingTestCase(java.lang.String name,
java.lang.Class testedClass)
name - Test nametestedClass - Tested class. If null, restrictions of the
reflecting test case do not apply.| Method Detail |
public void testWhetherAllMethodsAreTested()
public void testWhetherClassAndTestNameMatches()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||