jsystem.treeui
Class TestRunner
java.lang.Object
junit.runner.BaseTestRunner
jsystem.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
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 |
TestRunner
public TestRunner()
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 viewdata
- - 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)