junit.framework
Class TestSuite

java.lang.Object
   |
   +--junit.framework.TestSuite
All Implemented Interfaces:
Test
Direct Subclasses:
ActiveTestSuite

public class TestSuite
extends Object
implements Test

Field Summary
private fName
          
private fTests
          
Constructor Summary
TestSuite()
           
TestSuite(String name)
           
TestSuite(Class theClass)
           
 
Method Summary
public voidaddTest(Test test)
          
private voidaddTestMethod(Method m, Vector names, Constructor constructor)
          
public voidaddTestSuite(Class testClass)
          
public intcountTestCases()
          
private StringexceptionToString(Throwable t)
          
private ConstructorgetConstructor(Class theClass)
          
public StringgetName()
          
private booleanisPublicTestMethod(Method m)
          
private booleanisTestMethod(Method m)
          
public voidrun(TestResult result)
          
public voidrunTest(Test test, TestResult result)
          
public voidsetName(String name)
          
public TesttestAt(int index)
          
public inttestCount()
          
public Enumerationtests()
          
public StringtoString()
          
private Testwarning(String message)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Field Detail

fName

private String fName
References to the field:
junit/framework/TestSuite.java 47
junit/framework/TestSuite.java 77
junit/framework/TestSuite.java 207
junit/framework/TestSuite.java 216

fTests

private Vector fTests
References to the field:
junit/framework/TestSuite.java 70
junit/framework/TestSuite.java 83
junit/framework/TestSuite.java 180
junit/framework/TestSuite.java 186
junit/framework/TestSuite.java 192
Constructor Detail

TestSuite

public  TestSuite()

TestSuite

public  TestSuite(String name)
Locals in the constructor:
name: Line 77

TestSuite

public  TestSuite(Class theClass)
Click to Locals in the Constructor
Call sites to the constructor:
junit/framework/TestSuite.java 90
junit/runner/BaseTestRunner.java 49
junit/textui/TestRunner.java 186
Locals in the constructor:
constructor: Line 50, Line 66
e:
i: Line 65, Line 65, Line 66
methods: Line 65, Line 66
names: Line 66
superClass: Line 63, Line 64, Line 68, Line 68
theClass: Line 47, Line 50, Line 52, Line 56, Line 57, Line 61, Line 71
Method Detail

addTest

public void addTest(Test test)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 52
junit/framework/TestSuite.java 57
junit/framework/TestSuite.java 71
junit/framework/TestSuite.java 90
junit/framework/TestSuite.java 102
junit/framework/TestSuite.java 104
junit/framework/TestSuite.java 106
junit/framework/TestSuite.java 108
junit/framework/TestSuite.java 113

Locals in the method:
test Line 83

addTestMethod

private void addTestMethod(Method m, Vector names, Constructor constructor)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 66

Locals in the method:
args Line 102
constructor Line 102
e Line 104
e Line 108
e Line 106
m Line 94, Line 97, Line 112, Line 113
name Line 95, Line 98, Line 100, Line 104, Line 106, Line 108
names Line 95, Line 98

addTestSuite

public void addTestSuite(Class testClass)

Locals in the method:
testClass Line 90

countTestCases

public int countTestCases()

Locals in the method:
count Line 134, Line 134, Line 136
e Line 132, Line 133
test Line 134

exceptionToString

private String exceptionToString(Throwable t)

Locals in the method:
stringWriter Line 122, Line 124
t Line 123
writer Line 123

getConstructor

private Constructor getConstructor(Class theClass)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 50

Locals in the method:
args Line 144
theClass Line 144

getName

public String getName()
Call sites to the method:
junit/framework/TestSuite.java 197
junit/framework/TestSuite.java 198

isPublicTestMethod

private boolean isPublicTestMethod(Method m)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 97

Locals in the method:
m Line 150, Line 150

isTestMethod

private boolean isTestMethod(Method m)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 112
junit/framework/TestSuite.java 150

Locals in the method:
m Line 155, Line 156, Line 157
name Line 158
parameters Line 158
returnType Line 158

run

public void run(TestResult result)
Click to Locals in the Method
Call sites to the method:
junit/extensions/ActiveTestSuite.java 16

Locals in the method:
e Line 164, Line 167
result Line 165, Line 168
test Line 168

runTest

public void runTest(Test test, TestResult result)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 168

Locals in the method:
result Line 173
test Line 173

setName

public void setName(String name)

Locals in the method:
name Line 207

testAt

public Test testAt(int index)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestTreeModel.java 51
junit/swingui/TestTreeModel.java 82

Locals in the method:
index Line 180

testCount

public int testCount()
Call sites to the method:
junit/extensions/ActiveTestSuite.java 36
junit/swingui/TestTreeModel.java 91

tests

public Enumeration tests()
Call sites to the method:
junit/framework/TestSuite.java 132
junit/framework/TestSuite.java 164
junit/swingui/TestTreeModel.java 101

toString

public String toString()

warning

private Test warning(String message)
Click to Locals in the Method
Call sites to the method:
junit/framework/TestSuite.java 52
junit/framework/TestSuite.java 57
junit/framework/TestSuite.java 71
junit/framework/TestSuite.java 104
junit/framework/TestSuite.java 106
junit/framework/TestSuite.java 108
junit/framework/TestSuite.java 113

Locals in the method:
message Line 225