junit.framework.test
Class AssertTestCase

java.lang.Object
  |
  +--ccl.util.Test
        |
        +--junit.framework.TestCase
              |
              +--junit.framework.test.AssertTestCase
All Implemented Interfaces:
java.lang.Runnable

public class AssertTestCase
extends TestCase

This class supports one of the tests from the TestCaseTest class.


Constructor Summary
AssertTestCase()
          Default constructor.
AssertTestCase(java.lang.String name)
          Default constructor expected by TestCase base class.
 
Method Summary
protected  void _enterSubTest(java.lang.String name)
          This method is part of the ccl.util.Test class interface.
protected  void _exitSubTest()
          This method is part of the ccl.util.Test class interface.
 void assert(boolean condition)
          Deprecated. don't use this anymore, use standard JUnit API.
 void assert(boolean condition, java.lang.String message)
          Deprecated. don't use this anymore, use standard JUnit API.
 void testExample()
          Test method that has to be invoked during one of the tests.
 
Methods inherited from class junit.framework.TestCase
_doIt, assert, enterSubTest, exitSubTest, getMethods, getTestMethods, invokeTestMethod, invokeTestMethod
 
Methods inherited from class ccl.util.Test
_getValue, _increment, _setTests, _showLiveSignals, Assert, Assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertTrue, assertTrue, assertTrue, bug, bugIf, bugIf, bugIf, fail, fail, getBugs, getComment, getGlobalTests, getLocalTests, getName, getTestClassDirectory, getTestDirectory, getTestName, getTestName, getValue, initialize, isTest, isTiming, isVerbose, printResult, printResult, redirectStandardStreams, run, setBug, setParentTest, setTests, setTiming, setValue, setVerbose, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssertTestCase

public AssertTestCase()
Default constructor.


AssertTestCase

public AssertTestCase(java.lang.String name)
Default constructor expected by TestCase base class.

Method Detail

testExample

public void testExample()
Test method that has to be invoked during one of the tests.


_enterSubTest

protected void _enterSubTest(java.lang.String name)
This method is part of the ccl.util.Test class interface. If you are using regular JUnit, this method will do nothing, but if in reality a ccl.util.Test class is the true base class, we want to invoke the super method of this method.

Overrides:
_enterSubTest in class Test
Parameters:
name - e.g. "jacob".

_exitSubTest

protected void _exitSubTest()
This method is part of the ccl.util.Test class interface. If you are using regular JUnit, this method will do nothing, but if in reality a ccl.util.Test class is the true base class, we want to invoke the super method of this method.

Overrides:
_exitSubTest in class Test

assert

public void assert(boolean condition,
                   java.lang.String message)
Deprecated. don't use this anymore, use standard JUnit API.

Redirects ccl.util.Test assertion to JUnit assertion.

Overrides:
assert in class Test
Parameters:
message - The message gets printed when the assertion fails.

assert

public void assert(boolean condition)
Deprecated. don't use this anymore, use standard JUnit API.

Redirects ccl.util.Test assertion to JUnit assertion.

Overrides:
assert in class Test