|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.utjml.canica.output.OutputPaneController
public class OutputPaneController
OutputPaneController Implementation class of the OutputPaneable. The OutPutPaneController is the controller class of the Output Subsystem. It is in charge of the implementation of the OutputPaneable class. Create the output view of the system, and display the appropriate data to the views.
| Field Summary |
|---|
| Fields inherited from interface edu.utep.cs.utjml.canica.output.OutputPaneable |
|---|
VIEW_CONSOLE, VIEW_RUNTEST, VIEW_TESTGENERATION |
| Constructor Summary | |
|---|---|
OutputPaneController()
Constructors |
|
OutputPaneController(Mainable canica,
JMLEditorable jmlEditor)
Initializes the output pane view and all its components. |
|
| Method Summary | |
|---|---|
void |
addOutPutToConsole(String output)
It appends any output text to the console view. |
void |
focusView(int view)
This service focus a view, either the console, test generation or run tests cases view. |
OutputStream |
getOutPutFromConsole()
It returns the output text from the console view |
JPanel |
getOutputView()
It returns the Output view. |
RatListener |
getTestGenListener()
It returns the Test Generator listener, which lets add the test data generated from outer tools to this GUI |
static void |
main(String[] args)
The main entry point of this GUI. |
void |
printlnToConsole(String output)
It appends any output text and a NEW LINE to the console view, and removes any highlights in the view. |
void |
resetRunTestView()
Clear all values in the view, to start a new test execution. |
void |
setErrorsToRunTest(int errors)
Sets the number of errors to the Run Test view |
void |
setFailureDetailView(junit.runner.FailureDetailView fFailureView)
It sets the Failure detail view component into the GUI |
void |
setFailuresToRunTest(int failures)
Sets the number of failures to the Run Test view |
void |
setStartToRunTest(int total)
Adjusts the GUI objects to the beginning of the testing process |
void |
setSuite(String suiteName)
Sets the suite name in the GUI. |
void |
setTestEnded(int runs,
boolean successfull)
Sets the number of runs (successful test cases) and updates the progress bar |
void |
setTestRunContext(TestRunContext context)
Sets the Canica test runner context to Run Test Cases outputpane |
void |
setTestRunView(JPanel testRunView)
It sets the test run view (contains the test cases and failures in different tabs) |
void |
showErrorToRunTest(String message)
It shows an error message to the Status line in the Run Test view |
void |
showInfoToRunTest(String message)
It shows information to the Status line in the Run Test view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputPaneController()
public OutputPaneController(Mainable canica,
JMLEditorable jmlEditor)
canica - Gets the main programjmlEditor - Gets the JML editor.| Method Detail |
|---|
public JPanel getOutputView()
OutputPaneable
getOutputView in interface OutputPaneablepublic void focusView(int view)
OutputPaneable
focusView in interface OutputPaneablepublic void addOutPutToConsole(String output)
OutputPaneable
addOutPutToConsole in interface OutputPaneableoutput - The output textpublic void printlnToConsole(String output)
OutputPaneable
printlnToConsole in interface OutputPaneableoutput - The output textpublic OutputStream getOutPutFromConsole()
OutputPaneable
getOutPutFromConsole in interface OutputPaneablepublic RatListener getTestGenListener()
OutputPaneable
getTestGenListener in interface OutputPaneablepublic void setSuite(String suiteName)
setSuite in interface OutputPaneablesuiteName - Test Data class file namepublic void setTestRunContext(TestRunContext context)
setTestRunContext in interface OutputPaneablecontext - TestRunContextpublic void setFailureDetailView(junit.runner.FailureDetailView fFailureView)
setFailureDetailView in interface OutputPaneablefFailureView - failure detail viewpublic void setTestRunView(JPanel testRunView)
OutputPaneable
setTestRunView in interface OutputPaneabletestRunView - Test run viewpublic void resetRunTestView()
OutputPaneable
resetRunTestView in interface OutputPaneablepublic void showInfoToRunTest(String message)
OutputPaneable
showInfoToRunTest in interface OutputPaneablemessage - Message informationpublic void showErrorToRunTest(String message)
OutputPaneable
showErrorToRunTest in interface OutputPaneablemessage - Message errorpublic void setStartToRunTest(int total)
OutputPaneable
setStartToRunTest in interface OutputPaneabletotal - Total number of test casespublic void setErrorsToRunTest(int errors)
OutputPaneable
setErrorsToRunTest in interface OutputPaneableerrors - Total number of errorspublic void setFailuresToRunTest(int failures)
OutputPaneable
setFailuresToRunTest in interface OutputPaneablefailures - Total number of failures
public void setTestEnded(int runs,
boolean successfull)
OutputPaneable
setTestEnded in interface OutputPaneableruns - Total number of runssuccessfull - It tells if the test was successful or notpublic static void main(String[] args)
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||