junit.runner
Class ClassPathTestCollector

java.lang.Object
   |
   +--junit.runner.ClassPathTestCollector
All Implemented Interfaces:
TestCollector
Direct Subclasses:
LoadingTestCollector, SimpleTestCollector

public abstract class ClassPathTestCollector
extends Object
implements TestCollector

Field Summary
static final SUFFIX_LENGTH
          
Constructor Summary
ClassPathTestCollector()
           
 
Method Summary
protected StringclassNameFromFile(String classFileName)
          
voidcollectFilesInRoots(Vector roots, Hashtable result)
          
public EnumerationcollectTests()
          
voidgatherFiles(File classRoot, String classFileName, Hashtable result)
          
protected booleanisTestClass(String classFileName)
          
VectorsplitClassPath(String classPath, String separator)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Field Detail

SUFFIX_LENGTH

static final int SUFFIX_LENGTH
References to the field:
junit/runner/ClassPathTestCollector.java 68
Constructor Detail

ClassPathTestCollector

public  ClassPathTestCollector()
Method Detail

classNameFromFile

protected String classNameFromFile(String classFileName)
Click to Locals in the Method
Call sites to the method:
junit/runner/ClassPathTestCollector.java 39
junit/runner/LoadingTestCollector.java 36

Locals in the method:
classFileName Line 68, Line 68
s Line 69
s2 Line 70, Line 71, Line 72

collectFilesInRoots

void collectFilesInRoots(Vector roots, Hashtable result)
Click to Locals in the Method
Call sites to the method:
junit/runner/ClassPathTestCollector.java 25

Locals in the method:
e Line 31, Line 32
result Line 32
roots Line 30

collectTests

public Enumeration collectTests()

Locals in the method:
result Line 25, Line 26
classPath Line 25
separator Line 25

gatherFiles

void gatherFiles(File classRoot, String classFileName, Hashtable result)
Click to Locals in the Method
Call sites to the method:
junit/runner/ClassPathTestCollector.java 32
junit/runner/ClassPathTestCollector.java 47

Locals in the method:
classFileName Line 36, Line 38, Line 39, Line 47
className Line 40, Line 40
classRoot Line 36, Line 47
contents Line 45, Line 46, Line 47
i Line 46, Line 46, Line 47
result Line 40, Line 47
thisRoot Line 37, Line 44

isTestClass

protected boolean isTestClass(String classFileName)
Click to Locals in the Method
Call sites to the method:
junit/runner/ClassPathTestCollector.java 38

Locals in the method:
classFileName Line 61, Line 62, Line 63

splitClassPath

Vector splitClassPath(String classPath, String separator)
Click to Locals in the Method
Call sites to the method:
junit/runner/ClassPathTestCollector.java 25

Locals in the method:
classPath Line 53
result Line 55, Line 56
separator Line 53
tokenizer Line 54, Line 55