junit.framework.test
Class TestCaseTest

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

public class TestCaseTest
extends Test

Tests the redirecting of test code written for the JUnit test framework to the ccl.util.Test class.


Constructor Summary
TestCaseTest()
          Default constructor has to be present for ccl test to work.
TestCaseTest(Test pTest_)
          Standard constructor has to be present for ccl test to work.
 
Method Summary
protected  void _doIt()
          Work routine that invokes all test methods.
static boolean containsMethod(java.util.Vector vMethods, java.lang.String sMethodName)
          Checks if a vector of method objects contains a method with a certain name.
static int indexOfMethod(java.util.Vector vMethods, java.lang.String sMethodName)
          Returns the index of a method with a given name.
static void main(java.lang.String[] asArg_)
          Main method if you want to execute just this test class alone.
 void testAssert()
          Checks if the assert method really counts the test.
 int testDummy2()
          This is just a dummy method needed for a self test.
 void testDummy3(int i)
          This is just a dummy method needed for a self test.
 void testGetMethods()
          Tests the TestCase.getMethods method.
 void testGetTestMethods()
          Tests the TestCase.getTestMethods method.
 void testInvokeMe()
          This method does not contain a test but should be invoked by the test case class.
 void testInvokeTestMethod()
          Checks if the test case is able to invoke a test method.
 
Methods inherited from class ccl.util.Test
_enterSubTest, _exitSubTest, _getValue, _increment, _setTests, _showLiveSignals, assert, Assert, 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

TestCaseTest

public TestCaseTest()
Default constructor has to be present for ccl test to work.


TestCaseTest

public TestCaseTest(Test pTest_)
Standard constructor has to be present for ccl test to work.

Method Detail

testGetMethods

public void testGetMethods()
Tests the TestCase.getMethods method.


testGetTestMethods

public void testGetTestMethods()
Tests the TestCase.getTestMethods method.


testInvokeTestMethod

public void testInvokeTestMethod()
                          throws java.lang.Exception
Checks if the test case is able to invoke a test method.

java.lang.Exception

testDummy2

public int testDummy2()
This is just a dummy method needed for a self test.


testDummy3

public void testDummy3(int i)
This is just a dummy method needed for a self test.


testInvokeMe

public void testInvokeMe()
This method does not contain a test but should be invoked by the test case class.


testAssert

public void testAssert()
Checks if the assert method really counts the test.


_doIt

protected void _doIt()
              throws java.lang.Exception
Work routine that invokes all test methods.

Specified by:
_doIt in class Test
Throws:
java.lang.Exception - if anything goes wrong the test fails as well.

main

public static void main(java.lang.String[] asArg_)
Main method if you want to execute just this test class alone.


indexOfMethod

public static int indexOfMethod(java.util.Vector vMethods,
                                java.lang.String sMethodName)
Returns the index of a method with a given name.


containsMethod

public static boolean containsMethod(java.util.Vector vMethods,
                                     java.lang.String sMethodName)
Checks if a vector of method objects contains a method with a certain name.