|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
junit.com.mcdermottroe.exemplar.ExemplarTestCase<T>
T - The type of class being tested.public abstract class ExemplarTestCase<T>
A root class for all tests in Exemplar.
| Field Summary | |
|---|---|
protected static String |
DELIBERATE_PASS
This is the message to use when an always-pass assert is used. |
protected Class<?> |
testedClass
The Class of the class which is being tested by the runtime
type of this ExemplarTestCase object. |
protected static File |
TMP
A File for the temp directory. |
| Constructor Summary | |
|---|---|
ExemplarTestCase()
|
|
| Method Summary | |
|---|---|
protected Class<?> |
getTestedClass()
Calculate the class to be tested. |
void |
setUp()
Set up the JUnit test. |
void |
testAllMethodsBeingTested()
Test that all of the methods in the tested class have at least some testing methods for them. |
void |
testCorrectPackage()
When this method is inherited by every test it will make sure that all of the tested classes are in the same package as Constants which is in the root package. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String DELIBERATE_PASS
protected static final File TMP
File for the temp directory.
protected Class<?> testedClass
Class of the class which is being tested by the runtime
type of this ExemplarTestCase object.
| Constructor Detail |
|---|
public ExemplarTestCase()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseException - if TestCase.setUp() throws one.testedClass,
TestCase.setUp()protected Class<?> getTestedClass()
Class of the class to test.public void testCorrectPackage()
Constants which is in the root package.
Constantspublic void testAllMethodsBeingTested()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||