org.sodatest.api.java
Class SodaReportForJava
java.lang.Object
org.sodatest.api.java.JavaParameterConverter
org.sodatest.api.java.JavaReportConverter
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 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SodaReportForJava
public SodaReportForJava()
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.