junit.runner
Class LoadingTestCollector

java.lang.Object
  extended by junit.runner.ClassPathTestCollector
      extended by junit.runner.LoadingTestCollector
All Implemented Interfaces:
TestCollector

public class LoadingTestCollector
extends ClassPathTestCollector

An implementation of a TestCollector that loads all classes on the class path and tests whether it is assignable from Test or provides a static suite method.

See Also:
TestCollector

Field Summary
(package private)  TestCaseClassLoader fLoader
           
 
Fields inherited from class junit.runner.ClassPathTestCollector
SUFFIX_LENGTH
 
Constructor Summary
LoadingTestCollector()
           
 
Method Summary
(package private)  Class classFromFile(String classFileName)
           
(package private)  boolean hasPublicConstructor(Class testClass)
           
(package private)  boolean hasSuiteMethod(Class testClass)
           
(package private)  boolean isTestClass(Class testClass)
           
protected  boolean isTestClass(String classFileName)
           
 
Methods inherited from class junit.runner.ClassPathTestCollector
classNameFromFile, collectFilesInPath, collectFilesInRoots, collectTests, gatherFiles, splitClassPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fLoader

TestCaseClassLoader fLoader
Constructor Detail

LoadingTestCollector

public LoadingTestCollector()
Method Detail

isTestClass

protected boolean isTestClass(String classFileName)
Overrides:
isTestClass in class ClassPathTestCollector

classFromFile

Class classFromFile(String classFileName)
              throws ClassNotFoundException
Throws:
ClassNotFoundException

isTestClass

boolean isTestClass(Class testClass)

hasSuiteMethod

boolean hasSuiteMethod(Class testClass)

hasPublicConstructor

boolean hasPublicConstructor(Class testClass)