junit.com.mcdermottroe.exemplar
Class InterfaceTestCase<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.InterfaceTestCase<T>
Type Parameters:
T - The type of the interface being tested.
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ConstantsTest, CopyableTest, ExitHandlerTest, InputModuleTest, ParserSymbolsTest

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

Base test class for all JUnit test cases testing interfaces to inherit from.

Since:
0.1

Field Summary
 
Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
DELIBERATE_PASS, testedClass, TMP
 
Constructor Summary
InterfaceTestCase()
           
 
Method Summary
 void testAllMethodsBeingTested()
          Test that all of the methods in the tested class have at least some testing methods for them.
 void testIsActuallyAnInterface()
          Ensure that it's actually an interface.
 
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

InterfaceTestCase

public InterfaceTestCase()
Method Detail

testIsActuallyAnInterface

public void testIsActuallyAnInterface()
Ensure that it's actually an interface.


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>