UTJML

edu.utep.cs.utjml.canica.output
Interface OutputPaneable

All Known Implementing Classes:
OutputPaneController

public interface OutputPaneable

Author:
Angelica Berenice Perez Apr 18, 2006 The OutputPaneable class is responsible to provide the services to access the functionalities provided by the Output Subsystem. The output subsystem is responsible to provide the services to the Tool subsystem to show the output data that comes from the tool subsystem. The output comes from the Java compiler, Java Virtual machine, JML compiler, JML checker, test data generated, test cases, and result data from test cases after testing.

Field Summary
static int VIEW_CONSOLE
          Console view code
static int VIEW_RUNTEST
          Run Test view code
static int VIEW_TESTGENERATION
          Test Generation view code
 
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
 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 (coming from the Tool subsystem) component to the run test cases view.
 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)
          OutputPane Run test *************************************************************************** /** Sets the suite name in the GUI.
 void setTestEnded(int runs, boolean successful)
          Sets the number of runs (successful test cases) and updates the progress bar
 void setTestRunContext(TestRunContext context)
          Sets the Canica test runner context to the Run Test Cases pane.
 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
 

Field Detail

VIEW_CONSOLE

static final int VIEW_CONSOLE
Console view code

See Also:
Constant Field Values

VIEW_TESTGENERATION

static final int VIEW_TESTGENERATION
Test Generation view code

See Also:
Constant Field Values

VIEW_RUNTEST

static final int VIEW_RUNTEST
Run Test view code

See Also:
Constant Field Values
Method Detail

getOutputView

JPanel getOutputView()
It returns the Output view.

Returns:
OutputPaneView class contained in a JPanel class.

focusView

void focusView(int view)
This service focus a view, either the console, test generation or run tests cases view.

Parameters:
view -

addOutPutToConsole

void addOutPutToConsole(String output)
It appends any output text to the console view.

Parameters:
output - The output text

printlnToConsole

void printlnToConsole(String output)
It appends any output text and a NEW LINE to the console view, and removes any highlights in the view.

Parameters:
output - The output text

getOutPutFromConsole

OutputStream getOutPutFromConsole()
It returns the output text from the console view

Returns:
All Output text

getTestGenListener

RatListener getTestGenListener()
It returns the Test Generator listener, which lets add the test data generated from outer tools to this GUI

Returns:
the object listener

setSuite

void setSuite(String suiteName)
OutputPane Run test *************************************************************************** /** Sets the suite name in the GUI.

Parameters:
suiteName - Test Data class file name

setTestRunContext

void setTestRunContext(TestRunContext context)
Sets the Canica test runner context to the Run Test Cases pane.

Parameters:
context - TestRunContext

setFailureDetailView

void setFailureDetailView(junit.runner.FailureDetailView fFailureView)
It sets the failure detail view (coming from the Tool subsystem) component to the run test cases view.

Parameters:
fFailureView - failure detail view (see the Tool subsytem)

resetRunTestView

void resetRunTestView()
Clear all values in the view, to start a new test execution.


setTestRunView

void setTestRunView(JPanel testRunView)
It sets the test run view (contains the test cases and failures in different tabs)

Parameters:
testRunView - Test run view

showInfoToRunTest

void showInfoToRunTest(String message)
It shows information to the Status line in the Run Test view

Parameters:
message - Message information

showErrorToRunTest

void showErrorToRunTest(String message)
It shows an error message to the Status line in the Run Test view

Parameters:
message - Message error

setStartToRunTest

void setStartToRunTest(int total)
Adjusts the GUI objects to the beginning of the testing process

Parameters:
total - Total number of test cases

setErrorsToRunTest

void setErrorsToRunTest(int errors)
Sets the number of errors to the Run Test view

Parameters:
errors - Total number of errors

setFailuresToRunTest

void setFailuresToRunTest(int failures)
Sets the number of failures to the Run Test view

Parameters:
failures - Total number of failures

setTestEnded

void setTestEnded(int runs,
                  boolean successful)
Sets the number of runs (successful test cases) and updates the progress bar

Parameters:
runs - Total number of runs
successful - It tells if the test was successful or not

UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.