Class NumberedTestCase

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

public class NumberedTestCase extends org.junit.Assert implements junit.framework.Test
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
    class 
     
    class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    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)
     
     
    protected static String
     
    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
     
    protected void
     
     

    Methods inherited from class org.junit.Assert

    assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • NumberedTestCase

      public NumberedTestCase()
  • Method Details

    • 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)