lejosunit.tests
Class MyTestCaseTest

java.lang.Object
  extended bylejosunit.framework.Assert
      extended bylejosunit.framework.TestCase
          extended bylejosunit.tests.MyTestCaseTest
All Implemented Interfaces:
Test

public class MyTestCaseTest
extends TestCase

Test class for class TestCase using a helper class.

Author:
Jochen Hiller

Constructor Summary
MyTestCaseTest(java.lang.String name)
          Constructor to create a test case.
 
Method Summary
static void main(java.lang.String[] args)
          Main program to start the TestRunner at RCX
protected  void runTest()
          Run one test.
protected  void setUp()
          Setup the environment for this test.
static Test suite()
          Suite method to get all tests to run.
protected  void tearDown()
          Cleanup the test case environment.
 void testSetupCalled()
          Tests, whether the setup has been called correct.
 void testTearDownCalled()
          Tests, whether the tear down has been called correct.
 void testTestRan()
          Tests, whether the test has been running correct.
 
Methods inherited from class lejosunit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, toString
 
Methods inherited from class lejosunit.framework.Assert
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, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyTestCaseTest

public MyTestCaseTest(java.lang.String name)
Constructor to create a test case.

Parameters:
name - the nane of the test case
Method Detail

main

public static void main(java.lang.String[] args)
Main program to start the TestRunner at RCX

Parameters:
args - will be ignored

suite

public static Test suite()
Suite method to get all tests to run.

Returns:
the whole test suite

runTest

protected void runTest()
                throws java.lang.Throwable
Run one test. Do the dispatch here.

Specified by:
runTest in class TestCase
Throws:
java.lang.Throwable - a general error

setUp

protected void setUp()
Setup the environment for this test. Includes a new test case, which has been run. * @see lejosunit.framework.TestCase#setUp()

Overrides:
setUp in class TestCase

tearDown

protected void tearDown()
Cleanup the test case environment.

Overrides:
tearDown in class TestCase

testSetupCalled

public void testSetupCalled()
Tests, whether the setup has been called correct.


testTearDownCalled

public void testTearDownCalled()
Tests, whether the tear down has been called correct.


testTestRan

public void testTestRan()
Tests, whether the test has been running correct.



Copyright (C) 2003 Jochen Hiller. All Rights Reserved.