junit.com.mcdermottroe.exemplar
Class DBCTest

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.UtilityClassTestCase<DBC>
                  extended by junit.com.mcdermottroe.exemplar.DBCTest
All Implemented Interfaces:
junit.framework.Test

public class DBCTest
extends UtilityClassTestCase<DBC>

Test class for the DBC class.

Since:
0.1

Field Summary
 
Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
DELIBERATE_PASS, testedClass, TMP
 
Constructor Summary
DBCTest()
           
 
Method Summary
 void testASSERTFalse()
          Test that ASSERT(false) works correctly.
 void testASSERTTrue()
          Test that ASSERT(true) works correctly.
 void testENSUREFalse()
          Test that ENSURE(false) works correctly.
 void testENSURETrue()
          Test that ENSURE(true) works correctly.
 void testIGNORED_EXCEPTION()
          Test DBC.IGNORED_EXCEPTION(Throwable).
 void testREQUIREFalse()
          Test that REQUIRE(false) works correctly.
 void testREQUIRETrue()
          Test that REQUIRE(true) works correctly.
 void testUNREACHABLE_CODE()
          Test DBC.UNREACHABLE_CODE().
 
Methods inherited from class junit.com.mcdermottroe.exemplar.UtilityClassTestCase
testAllFieldsStatic, testAllMethodsStatic, testOnePrivateConstructor
 
Methods inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase
getTestedClass, setUp, testAllMethodsBeingTested, 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

DBCTest

public DBCTest()
Method Detail

testASSERTTrue

public void testASSERTTrue()
Test that ASSERT(true) works correctly.

See Also:
DBC.ASSERT(boolean)

testASSERTFalse

public void testASSERTFalse()
Test that ASSERT(false) works correctly.

See Also:
DBC.ASSERT(boolean)

testREQUIRETrue

public void testREQUIRETrue()
Test that REQUIRE(true) works correctly.

See Also:
DBC.REQUIRE(boolean)

testREQUIREFalse

public void testREQUIREFalse()
Test that REQUIRE(false) works correctly.

See Also:
DBC.REQUIRE(boolean)

testENSURETrue

public void testENSURETrue()
Test that ENSURE(true) works correctly.

See Also:
DBC.ENSURE(boolean)

testENSUREFalse

public void testENSUREFalse()
Test that ENSURE(false) works correctly.

See Also:
DBC.ENSURE(boolean)

testUNREACHABLE_CODE

public void testUNREACHABLE_CODE()
Test DBC.UNREACHABLE_CODE().


testIGNORED_EXCEPTION

public void testIGNORED_EXCEPTION()
Test DBC.IGNORED_EXCEPTION(Throwable).