junit.runner
Class BaseTestRunner

java.lang.Object
   |
   +--junit.runner.BaseTestRunner
All Implemented Interfaces:
TestListener
Direct Subclasses:
TestRunner, TestRunner, TestRunner

public abstract class BaseTestRunner
extends Object
implements TestListener

Field Summary
public static final SUITE_METHODNAME
          
fLoading
          
static fPreferences
          
static fgFilterStack
          
static fgMaxMessageLength
          
Constructor Summary
public BaseTestRunner()
           Default constructor
 
Method Summary
protected voidclearStatus()
          
public StringelapsedTimeAsString(long runTime)
          
public StringextractClassName(String className)
          
static booleanfilterLine(String line)
          
public static StringfilterStack(String stack)
          
public static StringgetFilteredTrace(Throwable t)
          
public TestSuiteLoadergetLoader()
          
public static StringgetPreference(String key)
          
public static intgetPreference(String key, int dflt)
          
private static FilegetPreferencesFile()
          
public TestgetTest(String suiteClassName)
          
public static booleaninVAJava()
          
protected ClassloadSuiteClass(String suiteClassName)
          
protected StringprocessArguments(String[] args)
          
private static voidreadPreferences()
          
protected abstract voidrunFailed(String message)
          
public voidsetLoading(boolean enable)
          
public static Stringtruncate(String s)
          
protected booleanuseReloadingTestSuiteLoader()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Field Detail

SUITE_METHODNAME

public static final String SUITE_METHODNAME
References to the field:
junit/runner/BaseTestRunner.java 45
junit/runner/LoadingTestCollector.java 54

fLoading

boolean fLoading
References to the field:
junit/runner/BaseTestRunner.java 105
junit/runner/BaseTestRunner.java 154

fPreferences

static Properties fPreferences
References to the field:
junit/runner/BaseTestRunner.java 166
junit/runner/BaseTestRunner.java 166
junit/runner/BaseTestRunner.java 167
junit/runner/BaseTestRunner.java 178
junit/runner/BaseTestRunner.java 259
junit/runner/BaseTestRunner.java 262
junit/runner/BaseTestRunner.java 263

fgFilterStack

static boolean fgFilterStack
References to the field:
junit/runner/BaseTestRunner.java 87
junit/runner/BaseTestRunner.java 220

fgMaxMessageLength

static int fgMaxMessageLength
References to the field:
junit/runner/BaseTestRunner.java 120
junit/runner/BaseTestRunner.java 120
junit/runner/BaseTestRunner.java 121
junit/runner/BaseTestRunner.java 265
junit/runner/BaseTestRunner.java 265
Constructor Detail

BaseTestRunner

public BaseTestRunner()
Method Detail

clearStatus

protected void clearStatus()
Call sites to the method:
junit/runner/BaseTestRunner.java 27
junit/runner/BaseTestRunner.java 48
junit/runner/BaseTestRunner.java 66

elapsedTimeAsString

public String elapsedTimeAsString(long runTime)
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 410
junit/swingui/TestRunner.java 651
junit/textui/TestRunner.java 78

Locals in the method:
runTime Line 74

extractClassName

public String extractClassName(String className)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 90
junit/textui/TestRunner.java 222

Locals in the method:
className Line 111, Line 112, Line 112, Line 113

filterLine

static boolean filterLine(String line)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 231

Locals in the method:
i Line 251, Line 251, Line 252
line Line 252
patterns Line 251, Line 252

filterStack

public static String filterStack(String stack)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 213

Locals in the method:
IOException
br Line 230
line Line 230, Line 231, Line 232
pw Line 232
sr Line 226
stack Line 221, Line 225, Line 235
sw Line 224, Line 237

getFilteredTrace

public static String getFilteredTrace(Throwable t)
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 444
junit/swingui/DefaultFailureDetailView.java 33
junit/textui/TestRunner.java 143
junit/textui/TestRunner.java 161

Locals in the method:
buffer Line 212
stringWriter Line 209, Line 211
t Line 210
trace Line 213
writer Line 210

getLoader

public TestSuiteLoader getLoader()
Call sites to the method:
junit/awtui/TestRunner.java 335
junit/runner/BaseTestRunner.java 135
junit/swingui/TestRunner.java 561

getPreference

public static String getPreference(String key)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 154
junit/runner/BaseTestRunner.java 182
junit/runner/BaseTestRunner.java 220
junit/swingui/TestRunner.java 189
junit/swingui/TestRunner.java 481

Locals in the method:
key Line 178

getPreference

public static int getPreference(String key, int dflt)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 265
junit/swingui/TestRunner.java 129

Locals in the method:
dflt Line 183
intValue Line 185, Line 187, Line 190
key Line 182
ne
value Line 184, Line 187

getPreferencesFile

private static File getPreferencesFile()
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 165

Locals in the method:
home Line 159

getTest

public Test getTest(String suiteClassName)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestRunner.java 612
junit/textui/TestRunner.java 233

Locals in the method:
clazz Line 35, Line 36, Line 37
e Line 40
e Line 58
e Line 62
e Line 34
e
suiteClassName Line 26, Line 32, Line 36
suiteMethod Line 45, Line 53
test Line 53, Line 54, Line 55, Line 67
testClass Line 32, Line 45, Line 49

inVAJava

public static boolean inVAJava()
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 187
junit/awtui/TestRunner.java 424
junit/runner/BaseTestRunner.java 154
junit/swingui/TestRunner.java 271
junit/swingui/TestRunner.java 621

Locals in the method:
e

loadSuiteClass

protected Class loadSuiteClass(String suiteClassName)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 32

Locals in the method:
suiteClassName Line 135

processArguments

protected String processArguments(String[] args)
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 467
junit/swingui/TestRunner.java 732

Locals in the method:
args Line 83, Line 84, Line 86, Line 88, Line 89, Line 90, Line 95
i Line 83, Line 83, Line 84, Line 86, Line 88, Line 89, Line 90, Line 93, Line 95
suiteName Line 90, Line 95, Line 98

readPreferences

private static void readPreferences()
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 264

Locals in the method:
e
e1
is Line 165, Line 167, Line 170, Line 171

runFailed

protected abstract void runFailed(String message)
Click to Locals in the Method
Call sites to the method:
junit/runner/BaseTestRunner.java 37
junit/runner/BaseTestRunner.java 40
junit/runner/BaseTestRunner.java 58
junit/runner/BaseTestRunner.java 62

Locals in the method:
message

setLoading

public void setLoading(boolean enable)
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 386
junit/runner/BaseTestRunner.java 85
junit/swingui/TestRunner.java 608

Locals in the method:
enable Line 105

truncate

public static String truncate(String s)
Click to Locals in the Method
Call sites to the method:
junit/awtui/TestRunner.java 84
junit/swingui/FailureRunView.java 42

Locals in the method:
s Line 120, Line 121, Line 121, Line 122

useReloadingTestSuiteLoader

protected boolean useReloadingTestSuiteLoader()
Call sites to the method:
junit/awtui/TestRunner.java 185
junit/runner/BaseTestRunner.java 148
junit/swingui/TestRunner.java 268