⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
junit.runner

Class ClassPathTestCollector

java.lang.Object
|
+--junit.runner.ClassPathTestCollector

All Implemented Interfaces:
TestCollector

Known Direct Subclasses:
LoadingTestCollector, SimpleTestCollector


public abstract class ClassPathTestCollector
extends java.lang.Object
implements TestCollector

An implementation of a TestCollector that consults the class path. It considers all classes on the class path excluding classes in JARs. It leaves it up to subclasses to decide whether a class is a runnable Test.
See Also:
TestCollector

Constructor Summary

ClassPathTestCollector()

Method Summary

String

classNameFromFile(String classFileName)

Hashtable

collectFilesInPath(String classPath)

Enumeration

collectTests()

boolean

isTestClass(String classFileName)

Constructor Details

ClassPathTestCollector

public ClassPathTestCollector()

Method Details

classNameFromFile

protected String classNameFromFile(String classFileName)

Parameters:
classFileName

collectFilesInPath

public Hashtable collectFilesInPath(String classPath)

Parameters:
classPath

collectTests

public Enumeration collectTests()


isTestClass

protected boolean isTestClass(String classFileName)

Parameters:
classFileName