|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.runner.BaseTestRunner
edu.utep.cs.utjml.canica.tool.CanicaTestRunner
public class CanicaTestRunner
| Field Summary |
|---|
| Fields inherited from class junit.runner.BaseTestRunner |
|---|
SUITE_METHODNAME |
| Constructor Summary | |
|---|---|
CanicaTestRunner(Class testClass)
Constructor, (singleton technique) |
|
| Method Summary | |
|---|---|
protected void |
aboutToStart(junit.framework.Test testSuite)
It prepares the Test run view to start (adds the testSuite to the Listener, |
protected junit.runner.FailureDetailView |
createFailureDetailView()
Creates the FailureDetailView |
protected junit.framework.TestResult |
createTestResult()
It returns the test result object |
protected JTabbedPane |
createTestRunViews()
It creates the JTabbedPane that will contain the two views, tests tree and failure view |
ListModel |
getFailures()
Returns the failure model |
junit.framework.Test |
getTest(Class testClass)
Returns the Test corresponding to the given suite. |
void |
handleTestSelected(junit.framework.Test test)
Handles the selection of a Test. |
protected void |
initializeAndLinksOutput()
Initializes failures objects and links this context with output, and failure detail view. |
protected void |
reset()
It resets the visual objects in the OutputPane |
static void |
run(Class test,
OutputPaneable outputPane)
It runs a test data file, given as arguments, the test data file and the outputPane interface to access the GUI objects. |
protected void |
runFailed(String message)
|
protected void |
runFinished(junit.framework.Test testSuite)
It tells the views that the run has finished |
void |
runSuite()
It runs the suite |
void |
setSuite(String suiteName)
It sets the file name to the output, and to a local reference |
void |
start(String[] args)
Starts the TestRunner |
void |
testEnded(String testName)
|
void |
testFailed(int status,
junit.framework.Test test,
Throwable t)
|
void |
testStarted(String testName)
|
void |
testViewChanged()
Whenever a tab page is selected (one of the test view changed) it activates activity in it. |
| 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 |
|---|
public CanicaTestRunner(Class testClass)
| Method Detail |
|---|
public static void run(Class test,
OutputPaneable outputPane)
test - Test data file (.class)outputPane - Outputpane interfacepublic void start(String[] args)
public void setSuite(String suiteName)
suiteName - file namepublic void runSuite()
public junit.framework.Test getTest(Class testClass)
public void testViewChanged()
public void testStarted(String testName)
testStarted in class junit.runner.BaseTestRunnerpublic void testEnded(String testName)
testEnded in class junit.runner.BaseTestRunner
public void testFailed(int status,
junit.framework.Test test,
Throwable t)
testFailed in class junit.runner.BaseTestRunnerprotected void runFailed(String message)
runFailed in class junit.runner.BaseTestRunnerpublic void handleTestSelected(junit.framework.Test test)
TestRunContext
handleTestSelected in interface TestRunContextpublic ListModel getFailures()
TestRunContext
getFailures in interface TestRunContextprotected void initializeAndLinksOutput()
protected JTabbedPane createTestRunViews()
protected void reset()
protected junit.runner.FailureDetailView createFailureDetailView()
protected junit.framework.TestResult createTestResult()
protected void aboutToStart(junit.framework.Test testSuite)
testSuite - protected void runFinished(junit.framework.Test testSuite)
testSuite -
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||