UTJML

edu.utep.cs.utjml.canica.output
Class OutputPaneRunTestCases

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by edu.utep.cs.utjml.canica.output.OutputPaneRunTestCases
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class OutputPaneRunTestCases
extends JPanel

OutputPaneRunTestCases Class This class is responsible to display the test results data. The data to display is: test data file name, total runs, total failures, total errors, progress, test cases results, test case arguments, testing messages.

Author:
Angelica B Perez Apr 19, 2006
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
OutputPaneRunTestCases()
          Constructors
 
Method Summary
protected  JScrollPane createArgumentsView()
          Create the arguments view
protected  CounterPanel createCounterPanel()
          It Creates the counter panel (runs, failures, and errors)
protected  edu.utep.cs.utjml.canica.output.StatusLine createStatusLine(int prefWidth)
          Creates the StatusLine object with preferred width
 void reset()
          Clear all field in the view, to start a new test
 void setErrors(int errors)
          Sets the total number of errors
 void setFailures(int failures)
          Sets the total number of failures
 void setFailureView(junit.runner.FailureDetailView failureView)
          It sets the view port that will show the detailed failure view
 void setRuns(int runs)
          Sets the total number of runs
 void setStart(int total)
          Initializes the values to the progress bar and counter panel
 void setTestDataFileName(String fileName)
          Sets the file name in the JTextField
 void setTestEnded(int runs, boolean successfull)
          It sets the total number of runs, and visualize the progress in the progress bar
 void setTestRunContext(TestRunContext context)
          Sets canica test run context+ not used yet.
 void setTestRunView(JPanel testRunView)
          It sets the JPanel that contains the Test and failure views
 void showError(String message)
          it shows an error message to the status line object
 void showInfo(String message)
          It shows a message to the status line object
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OutputPaneRunTestCases

public OutputPaneRunTestCases()
Constructors

Method Detail

setTestDataFileName

public void setTestDataFileName(String fileName)
Sets the file name in the JTextField

Parameters:
fileName - File name

setRuns

public void setRuns(int runs)
Sets the total number of runs

Parameters:
runs - Total number of runs

setFailures

public void setFailures(int failures)
Sets the total number of failures

Parameters:
failures - Total number of failures

setErrors

public void setErrors(int errors)
Sets the total number of errors

Parameters:
errors - Total number of errors

setTestRunContext

public void setTestRunContext(TestRunContext context)
Sets canica test run context+ not used yet.


setTestRunView

public void setTestRunView(JPanel testRunView)
It sets the JPanel that contains the Test and failure views

Parameters:
testRunView - The JTabbedPane which contains the views

reset

public void reset()
Clear all field in the view, to start a new test


setFailureView

public void setFailureView(junit.runner.FailureDetailView failureView)
It sets the view port that will show the detailed failure view

Parameters:
failureView - FailureDetailView

showInfo

public void showInfo(String message)
It shows a message to the status line object

Parameters:
message - Message

showError

public void showError(String message)
it shows an error message to the status line object

Parameters:
message - Error message

setStart

public void setStart(int total)
Initializes the values to the progress bar and counter panel

Parameters:
total - Total number of test cases

setTestEnded

public void setTestEnded(int runs,
                         boolean successfull)
It sets the total number of runs, and visualize the progress in the progress bar

Parameters:
runs - total number of runs
successfull - The test was succesful

createCounterPanel

protected CounterPanel createCounterPanel()
It Creates the counter panel (runs, failures, and errors)

Returns:
the CounterPanel object

createStatusLine

protected edu.utep.cs.utjml.canica.output.StatusLine createStatusLine(int prefWidth)
Creates the StatusLine object with preferred width

Parameters:
prefWidth - Preferred width
Returns:
the StatusLine object

createArgumentsView

protected JScrollPane createArgumentsView()
Create the arguments view

Returns:
Arguments view (JScrollPane containing a JTable)

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.