org.apache.openejb.test
Class NumberedTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by org.apache.openejb.test.NumberedTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NamedTestCase

public class NumberedTestCase
extends junit.framework.Assert
implements junit.framework.Test

Author:
David Blevins, Richard Monson-Haefel

Nested Class Summary
 class NumberedTestCase.NamedTest
           
 class NumberedTestCase.TestSetup
           
 class NumberedTestCase.TestTearDown
           
 
Field Summary
protected static String standardPrefix
           
 
Constructor Summary
NumberedTestCase()
           
 
Method Summary
 int countTestCases()
          Counts the number of test cases that will be run by this test.
protected  junit.framework.Test createTest(Method testMethod)
           
protected  String createTestName(Method testMethod)
           
 String name()
           
protected static String removePrefix(String name)
           
protected static String removePrefix(String prefix, String name)
           
 void run(junit.framework.TestResult result)
          Runs a test and collects its result in a TestResult instance.
protected  void run(junit.framework.TestResult result, Method testMethod)
           
protected  void runTestMethod(Method testMethod)
           
protected  void setUp()
           
protected  void tearDown()
           
 String toString()
           
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, 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, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

standardPrefix

protected static final String standardPrefix
See Also:
Constant Field Values
Constructor Detail

NumberedTestCase

public NumberedTestCase()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

countTestCases

public int countTestCases()
Counts the number of test cases that will be run by this test.

Specified by:
countTestCases in interface junit.framework.Test

run

public void run(junit.framework.TestResult result)
Runs a test and collects its result in a TestResult instance.

Specified by:
run in interface junit.framework.Test

run

protected void run(junit.framework.TestResult result,
                   Method testMethod)

createTest

protected junit.framework.Test createTest(Method testMethod)

runTestMethod

protected void runTestMethod(Method testMethod)
                      throws Throwable
Throws:
Throwable

toString

public String toString()
Overrides:
toString in class Object

name

public String name()

createTestName

protected String createTestName(Method testMethod)

removePrefix

protected static String removePrefix(String name)

removePrefix

protected static String removePrefix(String prefix,
                                     String name)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.