org.junitee.output
Class HTMLOutput

java.lang.Object
  extended byorg.junitee.output.AbstractOutput
      extended byorg.junitee.output.HTMLOutput
All Implemented Interfaces:
OutputProducer

public class HTMLOutput
extends AbstractOutput

This class implements the TestRunnerListener interface and produces an HTML test report.

Since:
1.5
Version:
$Revision: 1.23 $
Author:
Oliver Rossmueller

Field Summary
protected static java.lang.String ERROR
           
protected static java.lang.String FAILURE
           
protected static java.lang.String PASSED
           
protected  java.io.PrintWriter pw
           
protected static java.lang.String RESOURCE_GREEN_BULLET
           
protected static java.lang.String RESOURCE_INFO
           
protected static java.lang.String RESOURCE_RED_BULLET
           
protected static java.lang.String RESOURCE_YELLOW_BULLET
           
protected static java.lang.String UNKNOWN
           
 
Constructor Summary
HTMLOutput(TestRunnerResults results, HttpServletRequest request, HttpServletResponse response, boolean filterTrace, int refreshDelay)
           
 
Method Summary
protected  void printErrorsAndFailures()
           
protected  void printFooter()
           
protected  void printHeader()
           
protected  void printMethodList()
           
protected  void printRunErrors()
           
protected  void printSummary(boolean createInfoAndLinks)
           
protected  void printUnderProgress()
           
 void render()
           
 
Methods inherited from class org.junitee.output.AbstractOutput
exceptionToString, getCurrentInfo, getEJBExceptionDetail, getErrorMessages, getSuiteInfo, getTimestamp, isFailure, isFilterTrace, isFinished, isSingleTest, isStopped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR

protected static final java.lang.String ERROR
See Also:
Constant Field Values

FAILURE

protected static final java.lang.String FAILURE
See Also:
Constant Field Values

PASSED

protected static final java.lang.String PASSED
See Also:
Constant Field Values

UNKNOWN

protected static final java.lang.String UNKNOWN
See Also:
Constant Field Values

RESOURCE_RED_BULLET

protected static final java.lang.String RESOURCE_RED_BULLET
See Also:
Constant Field Values

RESOURCE_YELLOW_BULLET

protected static final java.lang.String RESOURCE_YELLOW_BULLET
See Also:
Constant Field Values

RESOURCE_GREEN_BULLET

protected static final java.lang.String RESOURCE_GREEN_BULLET
See Also:
Constant Field Values

RESOURCE_INFO

protected static final java.lang.String RESOURCE_INFO
See Also:
Constant Field Values

pw

protected java.io.PrintWriter pw
Constructor Detail

HTMLOutput

public HTMLOutput(TestRunnerResults results,
                  HttpServletRequest request,
                  HttpServletResponse response,
                  boolean filterTrace,
                  int refreshDelay)
           throws java.io.IOException
Method Detail

render

public void render()
Specified by:
render in interface OutputProducer
Specified by:
render in class AbstractOutput

printHeader

protected void printHeader()

printFooter

protected void printFooter()

printUnderProgress

protected void printUnderProgress()

printRunErrors

protected void printRunErrors()

printSummary

protected void printSummary(boolean createInfoAndLinks)

printMethodList

protected void printMethodList()

printErrorsAndFailures

protected void printErrorsAndFailures()