junit.com.mcdermottroe.exemplar
Class AbstractClassTestCase<T>

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by junit.com.mcdermottroe.exemplar.ExemplarTestCase<T>
              extended by junit.com.mcdermottroe.exemplar.AbstractClassTestCase<T>
Type Parameters:
T - The type of class to test.
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ExceptionTest, OptionTest, XMLAggregateObjectTest, XMLJavaSourceGeneratorTest, XMLNamedObjectTest, XMLObjectTest, XMLParserGeneratorTest, XMLParserObjectGeneratorTest, XMLParserSourceGeneratorTest

public abstract class AbstractClassTestCase<T>
extends ExemplarTestCase<T>

Base test class for all JUnit test cases testing abstract classes to inherit from. All abstract-class-specific tests should be added here.

Since:
0.1

Field Summary
 
Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
DELIBERATE_PASS, testedClass, TMP
 
Constructor Summary
AbstractClassTestCase()
           
 
Method Summary
 void testAllMethodsBeingTested()
          Test that all of the methods in the tested class have at least some testing methods for them.
 void testClassIsActuallyAbstract()
          Ensure that the abstract class is actually abstract.
 void testNoPublicConstructors()
          Ensure that if any constructors exist then the are protected or private.
 
Methods inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
getTestedClass, setUp, testCorrectPackage
 
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
 

Constructor Detail

AbstractClassTestCase

public AbstractClassTestCase()
Method Detail

testClassIsActuallyAbstract

public void testClassIsActuallyAbstract()
Ensure that the abstract class is actually abstract.


testNoPublicConstructors

public void testNoPublicConstructors()
Ensure that if any constructors exist then the are protected or private.


testAllMethodsBeingTested

public void testAllMethodsBeingTested()
Test that all of the methods in the tested class have at least some testing methods for them.

Overrides:
testAllMethodsBeingTested in class ExemplarTestCase<T>