Class JUnit4TestAdapter

java.lang.Object
junit.framework.JUnit4TestAdapter
All Implemented Interfaces:
Test, Describable, Filterable, Orderable, Sortable

public class JUnit4TestAdapter extends Object implements Test, Filterable, Orderable, Describable
The JUnit4TestAdapter enables running JUnit-4-style tests using a JUnit-3-style test runner.

To use it, add the following to a test class:

      public static Test suite() {
        return new JUnit4TestAdapter(YourJUnit4TestClass.class);
      }
  • Field Details

  • Constructor Details

    • JUnit4TestAdapter

      public JUnit4TestAdapter(Class<?> newTestClass)
    • JUnit4TestAdapter

      public JUnit4TestAdapter(Class<?> newTestClass, JUnit4TestAdapterCache cache)
  • Method Details