org.junit.internal.runners
Class SuiteMethod

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.internal.runners.JUnit38ClassRunner
          extended by org.junit.internal.runners.SuiteMethod
All Implemented Interfaces:
Describable, Filterable, Sortable
Direct Known Subclasses:
AllTests

public class SuiteMethod
extends JUnit38ClassRunner

Runner for use with JUnit 3.8.x-style AllTests classes (those that only implement a static suite() method). For example:

 @RunWith(AllTests.class)
 public class ProductTests {
    public static junit.framework.Test suite() {
       ...
    }
 }
 


Constructor Summary
SuiteMethod(Class<?> klass)
           
 
Method Summary
static Test testFromSuiteMethod(Class<?> klass)
           
 
Methods inherited from class org.junit.internal.runners.JUnit38ClassRunner
createAdaptingListener, filter, getDescription, run, sort
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuiteMethod

public SuiteMethod(Class<?> klass)
            throws Throwable
Throws:
Throwable
Method Detail

testFromSuiteMethod

public static Test testFromSuiteMethod(Class<?> klass)
                                throws Throwable
Throws:
Throwable