jsystem.treeui
Class TestRunner

java.lang.Object
  extended byjunit.runner.BaseTestRunner
      extended byjsystem.treeui.TestRunner
All Implemented Interfaces:
NodeSelectionChange, TestListener

public class TestRunner
extends BaseTestRunner
implements NodeSelectionChange

TestRunner This class implements the main entry This class holds the tree view and receives updates from the view


Field Summary
 
Fields inherited from class junit.runner.BaseTestRunner
SUITE_METHODNAME
 
Constructor Summary
TestRunner()
           
 
Method Summary
 void changeTestNodeSelection(TestNode testNode, boolean isSelected)
           
protected  TestResult createTestResult()
           
 void exit()
           
 void exportJar(Node currentNode)
           
 void getLastRunner()
           
 void handleEvent(int event, Object data)
          This method will be called from the view to update the controller of view events
 void importJar(Node currentNode)
           
 void loadList(Node currentNode)
           
static void main(String[] args)
           
 void publishRegression(Node currentNode)
           
protected  void runFailed(String s)
           
 void runSuite()
           
 void saveList(Node currentNode)
          Implements the change on the tree.
 void testEnded(String s)
           
 void testFailed(int i, Test test, Throwable throwable)
           
 void testStarted(String s)
           
 
Methods inherited from class junit.runner.BaseTestRunner
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getLoader, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestRunner

public TestRunner()
Method Detail

testStarted

public void testStarted(String s)

testEnded

public void testEnded(String s)

testFailed

public void testFailed(int i,
                       Test test,
                       Throwable throwable)

runFailed

protected void runFailed(String s)

handleEvent

public void handleEvent(int event,
                        Object data)
This method will be called from the view to update the controller of view events

Parameters:
event - - evnts triggered on the view
data - - data (if any)

runSuite

public void runSuite()

createTestResult

protected TestResult createTestResult()

saveList

public void saveList(Node currentNode)
Implements the change on the tree. The changed node is received as data from the view


loadList

public void loadList(Node currentNode)

exportJar

public void exportJar(Node currentNode)

importJar

public void importJar(Node currentNode)

getLastRunner

public void getLastRunner()

publishRegression

public void publishRegression(Node currentNode)

changeTestNodeSelection

public void changeTestNodeSelection(TestNode testNode,
                                    boolean isSelected)
Specified by:
changeTestNodeSelection in interface NodeSelectionChange

exit

public void exit()

main

public static void main(String[] args)