org.easetech.easytest.reports.data
Class ReportDataContainer

java.lang.Object
  extended by org.easetech.easytest.reports.data.ReportDataContainer

public class ReportDataContainer
extends Object

Accumulates all the test results during a test run. Results are used as input for the TestReportHelper

Author:
gpcmol

Constructor Summary
ReportDataContainer(Class<?> testClass)
          Constructor
 
Method Summary
 void addTestResult(String method, Map<String,Object> input, Object output, Boolean passed, String result, Boolean exception, String exceptionResult)
          Creates a TestResultBean which contains all the test result data and adds it to the report data structures
 void addTestResult(TestResultBean testResult)
           
 String getClassName()
           
 Map<String,List<TestResultBean>> getMethodTestResults()
           
 Class<?> getTestClass()
           
 List<TestResultBean> getTestResults()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportDataContainer

public ReportDataContainer(Class<?> testClass)
Constructor

Parameters:
testClass -
Method Detail

addTestResult

public void addTestResult(String method,
                          Map<String,Object> input,
                          Object output,
                          Boolean passed,
                          String result,
                          Boolean exception,
                          String exceptionResult)
Creates a TestResultBean which contains all the test result data and adds it to the report data structures

Parameters:
method -
input -
output -
passed -
result -
exception -
exceptionResult -

addTestResult

public void addTestResult(TestResultBean testResult)

getTestResults

public List<TestResultBean> getTestResults()

getMethodTestResults

public Map<String,List<TestResultBean>> getMethodTestResults()

getClassName

public String getClassName()

getTestClass

public Class<?> getTestClass()


Copyright © 2013. All Rights Reserved.