org.easetech.easytest.loader
Class EmptyLoader
java.lang.Object
org.easetech.easytest.loader.EmptyLoader
- All Implemented Interfaces:
- Loader
public class EmptyLoader
- extends Object
- implements Loader
An empty loader implementation
| Fields inherited from interface org.easetech.easytest.loader.Loader |
ACTUAL_RESULT, AMPERSAND, COMMA, DOUBLE_QUOTE, DURATION, EMPTY_STRING, EXPECTED_RESULT, SINGLE_QUOTE, TEST_FAILED, TEST_PASSED, TEST_STATUS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmptyLoader
public EmptyLoader()
loadData
public Map<String,List<Map<String,Object>>> loadData(Resource resource)
- Description copied from interface:
Loader
- Method responsible to Load the test data from the list of files passed as parameter
- Specified by:
loadData in interface Loader
- Parameters:
resource - from which to load the data
- Returns:
- a Map consisting of the methodName as key and a List of Key/value pairs as the value of the Map.
This is currently not a user friendly way of exposing the test data.
writeData
public void writeData(Resource resource,
Map<String,List<Map<String,Object>>> actualData,
String... methodNames)
- Description copied from interface:
Loader
- Method responsible for writing the test data and actual result back to the file
- Specified by:
writeData in interface Loader
- Parameters:
resource - the resource to which data needs to be writtenactualData - a Map consisting of the methodName as key and a List of Key/value pairs as the value of the Map.
This Map contains the input as well as output data
This is currently not a user friendly way of exposing the test data.methodNames - the names of the method to write the data for
Copyright © 2013. All Rights Reserved.