org.sodatest.api.java
Class SodaReportForJava

java.lang.Object
  extended by org.sodatest.api.java.JavaParameterConverter
      extended by org.sodatest.api.java.JavaReportConverter
          extended by org.sodatest.api.java.SodaReportForJava
All Implemented Interfaces:
org.sodatest.api.SodaReport

public abstract class SodaReportForJava
extends JavaReportConverter
implements org.sodatest.api.SodaReport

Abstract base class for Java-based SodaReports that do not require reflection-based coercion and binding. The majority of Reports will more easily be written by extending ReflectiveSodaReportForJava

See Also:
ReflectiveSodaEventForJava

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sodatest.api.SodaReport
org.sodatest.api.SodaReport.$anonfun$toReport$1, org.sodatest.api.SodaReport.$anonfun$toSingleColumnReport$1, org.sodatest.api.SodaReport.$anonfun$toSingleRowReport$1, org.sodatest.api.SodaReport.ItemListWrapper, org.sodatest.api.SodaReport.ItemTableWrapper, org.sodatest.api.SodaReport.ItemWrapper
 
Constructor Summary
SodaReportForJava()
           
 
Method Summary
 scala.collection.Seq<scala.collection.Seq<String>> apply(scala.collection.immutable.Map<String,String> parameters)
          Converts the parameters to a Java Map and passes them to getReport(java.util.Map) and converts the result of getReport() before returning it.
abstract  List<List<String>> getReport(Map<String,String> parameters)
          Executes this Report against the System under test using the given parameters.
 
Methods inherited from class org.sodatest.api.java.JavaReportConverter
convertReport, toReport, toSingleCellReport, toSingleColumnReport, toSingleRowReport
 
Methods inherited from class org.sodatest.api.java.JavaParameterConverter
convertParameters, list, None
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SodaReportForJava

public SodaReportForJava()
Method Detail

getReport

public abstract List<List<String>> getReport(Map<String,String> parameters)
                                      throws org.sodatest.coercion.CoercionBindingException
Executes this Report against the System under test using the given parameters.

Parameters:
parameters - A map of parameter names and values that should be used in executing the Report.
Throws:
org.sodatest.coercion.CoercionBindingException - if an error occurs while attempting to translate one of the string values in the parameter map into a value that can be used by the Report.
Throwable - if anything else goes wrong while executing the Report.

apply

public final scala.collection.Seq<scala.collection.Seq<String>> apply(scala.collection.immutable.Map<String,String> parameters)
                                                               throws org.sodatest.coercion.CoercionBindingException
Converts the parameters to a Java Map and passes them to getReport(java.util.Map) and converts the result of getReport() before returning it. You can override JavaParameterConverter.convertParameters(scala.collection.immutable.Map) and/or JavaReportConverter.convertReport(java.util.List) if you want to use different methods of conversion.

Specified by:
apply in interface org.sodatest.api.SodaReport
Throws:
org.sodatest.coercion.CoercionBindingException


Copyright © 2010-2011 Belmont Technology Pty Ltd. All Rights Reserved.