lejosunit.tests
Class MyTestCase

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

public class MyTestCase
extends TestCase

Helper class to execute some test on the class TestCase.

Author:
Jochen Hiller

Field Summary
 boolean fSetUpCalled
          test flag for checking correct behaviour
 boolean fSetUPCalledFirst
          test flag for checking correct behaviour
 boolean fTearDownCalled
          test flag for checking correct behaviour
 boolean fTearDownCalledLast
          test flag for checking correct behaviour
 boolean fTestRun
          test flag for checking correct behaviour
 boolean fTestRunCalledAfterSetup
          test flag for checking correct behaviour
 
Constructor Summary
MyTestCase(java.lang.String name)
          Default constructor
 
Method Summary
protected  void runTest()
          Run one test.
protected  void setUp()
          Setup one test case.
protected  void tearDown()
          De-initialize one test case.
 void testOne()
          test, whether setup and teardown are called in correct order.
 
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
 

Field Detail

fSetUpCalled

public boolean fSetUpCalled
test flag for checking correct behaviour


fTearDownCalled

public boolean fTearDownCalled
test flag for checking correct behaviour


fTestRun

public boolean fTestRun
test flag for checking correct behaviour


fSetUPCalledFirst

public boolean fSetUPCalledFirst
test flag for checking correct behaviour


fTearDownCalledLast

public boolean fTearDownCalledLast
test flag for checking correct behaviour


fTestRunCalledAfterSetup

public boolean fTestRunCalledAfterSetup
test flag for checking correct behaviour

Constructor Detail

MyTestCase

public MyTestCase(java.lang.String name)
Default constructor. * @see lejosunit.framework.TestCase#TestCase(String)

Method Detail

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 one test case.

Overrides:
setUp in class TestCase

tearDown

protected void tearDown()
De-initialize one test case.

Overrides:
tearDown in class TestCase

testOne

public void testOne()
test, whether setup and teardown are called in correct order.



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