ccl.util.test
Class TestTest

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

public class TestTest
extends Test

Tests the ccl.util.Test class which is the center of the testing API.


Nested Class Summary
static class TestTest.FailingTest
          Comment to fool checkstyle.
static class TestTest.SuccessfullTest
          Comment to fool checkstyle.
 
Constructor Summary
TestTest()
          Default constructor needed by Test API.
TestTest(Test pTest_)
          Standard constructor needed by Test API.
 
Method Summary
protected  void _doIt()
          Main method to invoke all test methods.
static void main(java.lang.String[] asArg_)
          Use this main class if you want to run the self test of this class alone, otherwise use ccl.Main -check.
 void testGetTestName()
          Checks that a test name is the name of the test class without the trailing "Test" part (so the test name is the leading part of the test class name).
 
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

TestTest

public TestTest()
Default constructor needed by Test API.


TestTest

public TestTest(Test pTest_)
Standard constructor needed by Test API.

Method Detail

testGetTestName

public void testGetTestName()
                     throws java.lang.Exception
Checks that a test name is the name of the test class without the trailing "Test" part (so the test name is the leading part of the test class name).

Throws:
java.lang.Exception - any exception gets forwarded so it can be counted as a bug.

_doIt

protected void _doIt()
              throws java.lang.Exception
Main method to invoke 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_)
Use this main class if you want to run the self test of this class alone, otherwise use ccl.Main -check.