com.atlassian.confluence.renderer.radeox.macros.junit.report
Class TestSuite

java.lang.Object
  extended by com.atlassian.confluence.renderer.radeox.macros.junit.report.TestSuite

public class TestSuite
extends java.lang.Object


Field Summary
static java.lang.String REPORT_DETAIL_ALL
           
static java.lang.String REPORT_DETAIL_FAILURES_ONLY
           
static java.lang.String REPORT_DETAIL_PER_FIXTURE
           
static java.lang.String REPORT_DETAIL_SUMMARY
           
 
Constructor Summary
TestSuite(TestReport report)
           
 
Method Summary
 javax.servlet.http.HttpServletRequest getCurrentRequest()
          Returns the current page request
 java.lang.String getCurrentRequestUrl()
          Retrieves the full URL including parameters for the current request
 TestReport getReport()
           
 java.lang.String getReportDetail()
          Determines how much detail is shown in the report
 java.io.Writer getWriter()
          The writer to use with this test suite
 boolean isDebug()
           
 boolean isRunningSuite()
           
 boolean isStopOnException()
           
 boolean isStopRunning()
           
 void onDebug(java.lang.String nodeText, java.lang.String message)
          Records a debug message in the report
 void onException(java.lang.String nodeText, java.lang.String message, java.lang.Throwable exception)
          Records an exception in the report
 void onFailure(java.lang.String nodeText, java.lang.String actualValue, java.lang.String message)
          Records a test failure in the report
 void onPass(java.lang.String nodeText, java.lang.String message)
          Records a test pass in the report
 void setCurrentRequest(javax.servlet.http.HttpServletRequest currentRequest)
          Sets the current page request
 void setDebug(boolean debug)
           
 void setReport(TestSuiteReport report)
          Sets the current suite report
 void setReportDetail(java.lang.String reportDetail)
          Determines how much detail is shown in the report
 void setStopOnException(boolean stopOnException)
           
 void setStopRunning(boolean stopRunning)
           
 void setWriter(java.io.Writer writer)
          Sets the writer used by this test suite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT_DETAIL_ALL

public static final java.lang.String REPORT_DETAIL_ALL
See Also:
Constant Field Values

REPORT_DETAIL_PER_FIXTURE

public static final java.lang.String REPORT_DETAIL_PER_FIXTURE
See Also:
Constant Field Values

REPORT_DETAIL_SUMMARY

public static final java.lang.String REPORT_DETAIL_SUMMARY
See Also:
Constant Field Values

REPORT_DETAIL_FAILURES_ONLY

public static final java.lang.String REPORT_DETAIL_FAILURES_ONLY
See Also:
Constant Field Values
Constructor Detail

TestSuite

public TestSuite(TestReport report)
Method Detail

getWriter

public java.io.Writer getWriter()
The writer to use with this test suite

Returns:
the current writer

setWriter

public void setWriter(java.io.Writer writer)
Sets the writer used by this test suite

Parameters:
writer - the writer to use

getReport

public TestReport getReport()
Returns:
the current suite Report

setReport

public void setReport(TestSuiteReport report)
Sets the current suite report

Parameters:
report - the current suite report

isRunningSuite

public boolean isRunningSuite()
Returns:
true is a test suite is being run or false otherwise

isDebug

public boolean isDebug()

setDebug

public void setDebug(boolean debug)

onException

public void onException(java.lang.String nodeText,
                        java.lang.String message,
                        java.lang.Throwable exception)
Records an exception in the report

Parameters:
nodeText - the current cell on the table
message - a message to record with the exception
exception - the exception to record

onFailure

public void onFailure(java.lang.String nodeText,
                      java.lang.String actualValue,
                      java.lang.String message)
Records a test failure in the report

Parameters:
nodeText - the current cell text on the table
actualValue - the value that was returned from the execution
message - a message to record with the failure

onPass

public void onPass(java.lang.String nodeText,
                   java.lang.String message)
Records a test pass in the report

Parameters:
nodeText - the current cell text on the table
message - a message to record with the pass

onDebug

public void onDebug(java.lang.String nodeText,
                    java.lang.String message)
Records a debug message in the report

Parameters:
nodeText - the current cell text on the table
message - a message to record with the pass

getReportDetail

public java.lang.String getReportDetail()
Determines how much detail is shown in the report

Returns:
one of the detail levels, either REPORT_DETAIL_ALL, REPORT_DETAIL_TEST_FIXTURE or REPORT_DETAIL_TEST_SUITE

setReportDetail

public void setReportDetail(java.lang.String reportDetail)
Determines how much detail is shown in the report

Parameters:
reportDetail - ne of the detail levels, either REPORT_DETAIL_ALL, REPORT_DETAIL_TEST_FIXTURE or REPORT_DETAIL_TEST_SUITE

getCurrentRequest

public javax.servlet.http.HttpServletRequest getCurrentRequest()
Returns the current page request

Returns:
the current page request

setCurrentRequest

public void setCurrentRequest(javax.servlet.http.HttpServletRequest currentRequest)
Sets the current page request


getCurrentRequestUrl

public java.lang.String getCurrentRequestUrl()
Retrieves the full URL including parameters for the current request


isStopRunning

public boolean isStopRunning()

setStopRunning

public void setStopRunning(boolean stopRunning)

isStopOnException

public boolean isStopOnException()

setStopOnException

public void setStopOnException(boolean stopOnException)


Copyright © 2003-2013 Atlassian. All Rights Reserved.