junit.runner
Class TestCaseClassLoader

ClassLoader
   |
   +--junit.runner.TestCaseClassLoader

public class TestCaseClassLoader
extends ClassLoader

Field Summary
static final EXCLUDED_FILE
          
private defaultExclusions
          
private fExcluded
          
private fPathItems
          
Constructor Summary
TestCaseClassLoader()
           
TestCaseClassLoader(String classPath)
           
 
Method Summary
private byte[]getClassData(File f)
          
public URLgetResource(String name)
          
public InputStreamgetResourceAsStream(String name)
          
public booleanisExcluded(String name)
          
booleanisJar(String pathEntry)
          
public synchronized ClassloadClass(String name, boolean resolve)
          
private byte[]loadFileData(String path, String fileName)
          
private byte[]loadJarData(String path, String fileName)
          
private byte[]lookupClassData(String className)
          
private voidreadExcludedPackages()
          
private voidscanPath(String classPath)
          
Field Detail

EXCLUDED_FILE

static final String EXCLUDED_FILE
References to the field:
junit/runner/TestCaseClassLoader.java 197

defaultExclusions

private String[] defaultExclusions
References to the field:
junit/runner/TestCaseClassLoader.java 194
junit/runner/TestCaseClassLoader.java 195

fExcluded

private Vector fExcluded
References to the field:
junit/runner/TestCaseClassLoader.java 74
junit/runner/TestCaseClassLoader.java 75
junit/runner/TestCaseClassLoader.java 193
junit/runner/TestCaseClassLoader.java 195
junit/runner/TestCaseClassLoader.java 220

fPathItems

private Vector fPathItems
References to the field:
junit/runner/TestCaseClassLoader.java 58
junit/runner/TestCaseClassLoader.java 61
junit/runner/TestCaseClassLoader.java 113
junit/runner/TestCaseClassLoader.java 114
Constructor Detail

TestCaseClassLoader

public  TestCaseClassLoader()
Call sites to the constructor:
junit/runner/LoadingTestCollector.java 18
junit/runner/ReloadingTestSuiteLoader.java 8
junit/runner/ReloadingTestSuiteLoader.java 12

TestCaseClassLoader

public  TestCaseClassLoader(String classPath)
Locals in the constructor:
classPath: Line 52
Method Detail

getClassData

private byte[] getClassData(File f)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 134

Locals in the method:
b Line 145, Line 146
e
f Line 141
n Line 145, Line 146
out Line 146, Line 148, Line 149
stream Line 145, Line 147

getResource

public URL getResource(String name)

Locals in the method:
name Line 66

getResourceAsStream

public InputStream getResourceAsStream(String name)

Locals in the method:
name Line 70

isExcluded

public boolean isExcluded(String name)
Click to Locals in the Method
Call sites to the method:
junit/runner/LoadingTestCollector.java 37
junit/runner/TestCaseClassLoader.java 92

Locals in the method:
i Line 74, Line 74, Line 75
name Line 75

isJar

boolean isJar(String pathEntry)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 116

Locals in the method:
pathEntry Line 128, Line 128

loadClass

public synchronized Class loadClass(String name, boolean resolve)
Click to Locals in the Method
Call sites to the method:
junit/runner/LoadingTestCollector.java 38
junit/runner/ReloadingTestSuiteLoader.java 9

Locals in the method:
c Line 86, Line 87, Line 94, Line 95, Line 100, Line 104, Line 107, Line 108
data Line 102, Line 104, Line 104
e
name Line 85, Line 92, Line 94, Line 101, Line 104
resolve Line 106

loadFileData

private byte[] loadFileData(String path, String fileName)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 119

Locals in the method:
file Line 133, Line 134
fileName Line 132
path Line 132

loadJarData

private byte[] loadJarData(String path, String fileName)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 117

Locals in the method:
archive Line 160, Line 163
data Line 176, Line 176, Line 180
e
e
entry Line 168, Line 170, Line 172
fileName Line 167
io
n Line 177
path Line 159
pos Line 175, Line 176, Line 176, Line 177
size Line 173, Line 175
stream Line 172, Line 176, Line 184, Line 185
zipFile Line 163, Line 167, Line 172, Line 179

lookupClassData

private byte[] lookupClassData(String className)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 101

Locals in the method:
className Line 115, Line 124
data Line 117, Line 119, Line 121, Line 122
fileName Line 117, Line 119
i Line 113, Line 113, Line 114
path Line 116, Line 117, Line 119

readExcludedPackages

private void readExcludedPackages()
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 53

Locals in the method:
e
e
e Line 212, Line 213
i Line 194, Line 194, Line 195
is Line 198, Line 202, Line 208
key Line 214, Line 215
p Line 202, Line 212, Line 215
path Line 216, Line 216, Line 217, Line 218, Line 218, Line 218, Line 219, Line 220

scanPath

private void scanPath(String classPath)
Click to Locals in the Method
Call sites to the method:
junit/runner/TestCaseClassLoader.java 52

Locals in the method:
classPath Line 59
separator Line 59
st Line 60, Line 61