junit.swingui
Class TestTreeModel

java.lang.Object
   |
   +--junit.swingui.TestTreeModel

class TestTreeModel
extends Object
implements TreeModel

Field Summary
private fErrors
          
private fFailures
          
private fModelListeners
          
private fRoot
          
private fRunTests
          
Constructor Summary
TestTreeModel(Test root)
           
 
Method Summary
voidaddError(Test t)
          
voidaddFailure(Test t)
          
voidaddRunTest(Test t)
          
public voidaddTreeModelListener(TreeModelListener l)
          
public intfindTest(Test target, Test node, Vector path)
          
public voidfireNodeChanged(TreePath path, int index)
          
public ObjectgetChild(Object parent, int index)
          
public intgetChildCount(Object parent)
          
public intgetIndexOfChild(Object parent, Object child)
          
public ObjectgetRoot()
          
booleanisError(Test t)
          
booleanisFailure(Test t)
          
public booleanisLeaf(Object node)
          
TestSuiteisTestSuite(Object node)
          Tests if the node is a TestSuite.
public voidremoveTreeModelListener(TreeModelListener l)
          
voidresetResults()
          
public voidvalueForPathChanged(TreePath path, Object newValue)
          
booleanwasRun(Test t)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Field Detail

fErrors

private Hashtable fErrors
References to the field:
junit/swingui/TestTreeModel.java 150
junit/swingui/TestTreeModel.java 168
junit/swingui/TestTreeModel.java 168
junit/swingui/TestTreeModel.java 182

fFailures

private Hashtable fFailures
References to the field:
junit/swingui/TestTreeModel.java 144
junit/swingui/TestTreeModel.java 174
junit/swingui/TestTreeModel.java 174
junit/swingui/TestTreeModel.java 180

fModelListeners

private Vector fModelListeners
References to the field:
junit/swingui/TestTreeModel.java 32
junit/swingui/TestTreeModel.java 33
junit/swingui/TestTreeModel.java 39
junit/swingui/TestTreeModel.java 70

fRoot

private Test fRoot
References to the field:
junit/swingui/TestTreeModel.java 25
junit/swingui/TestTreeModel.java 112

fRunTests

private Hashtable fRunTests
References to the field:
junit/swingui/TestTreeModel.java 156
junit/swingui/TestTreeModel.java 162
junit/swingui/TestTreeModel.java 181
Constructor Detail

TestTreeModel

public  TestTreeModel(Test root)
Click to Locals in the Constructor
Call sites to the constructor:
junit/swingui/TestSuitePanel.java 132
Locals in the constructor:
root: Line 25
Method Detail

addError

void addError(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 88

Locals in the method:
t Line 150, Line 150

addFailure

void addFailure(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 93

Locals in the method:
t Line 144, Line 144

addRunTest

void addRunTest(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 101

Locals in the method:
t Line 156, Line 156

addTreeModelListener

public void addTreeModelListener(TreeModelListener l)

Locals in the method:
l Line 32, Line 33

findTest

public int findTest(Test target, Test node, Vector path)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestHierarchyRunView.java 48
junit/swingui/TestSuitePanel.java 142
junit/swingui/TestTreeModel.java 52

Locals in the method:
i Line 50, Line 50, Line 51, Line 56
index Line 53, Line 57
node Line 46, Line 49, Line 50, Line 54
path Line 52, Line 54, Line 55
suite Line 51
t Line 52
target Line 46, Line 52

fireNodeChanged

public void fireNodeChanged(TreePath path, int index)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 147

Locals in the method:
changedChildren Line 68
e Line 71, Line 72
event Line 73
index Line 66, Line 67
indices Line 68
l Line 73
path Line 67, Line 68

getChild

public Object getChild(Object parent, int index)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestHierarchyRunView.java 53

Locals in the method:
index Line 82
parent Line 80
suite Line 81, Line 82

getChildCount

public int getChildCount(Object parent)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestTreeModel.java 50

Locals in the method:
parent Line 89
suite Line 90, Line 91

getIndexOfChild

public int getIndexOfChild(Object parent, Object child)

Locals in the method:
parent Line 98
child Line 102
suite Line 99, Line 101
i Line 101, Line 103
e Line 101, Line 102

getRoot

public Object getRoot()
Call sites to the method:
junit/swingui/TestHierarchyRunView.java 48
junit/swingui/TestSuitePanel.java 142

isError

boolean isError(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 57

Locals in the method:
t Line 168

isFailure

boolean isFailure(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 52

Locals in the method:
t Line 174

isLeaf

public boolean isLeaf(Object node)

Locals in the method:
node Line 118

isTestSuite

TestSuite isTestSuite(Object node)
Tests if the node is a TestSuite.
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestTreeModel.java 49
junit/swingui/TestTreeModel.java 80
junit/swingui/TestTreeModel.java 89
junit/swingui/TestTreeModel.java 98
junit/swingui/TestTreeModel.java 118
junit/swingui/TestTreeModel.java 128

Locals in the method:
baseTest Line 128
node Line 124, Line 125, Line 126, Line 127

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener l)

Locals in the method:
l Line 39

resetResults

void resetResults()

valueForPathChanged

public void valueForPathChanged(TreePath path, Object newValue)

Locals in the method:
path
newValue

wasRun

boolean wasRun(Test t)
Click to Locals in the Method
Call sites to the method:
junit/swingui/TestSuitePanel.java 62

Locals in the method:
t Line 162