src/main/java/com/xceptance/neodymium/module/statement/testdata/util/TestDataUtils.java
/**
     * Returns the test data sets contained in the given test data file. The data set provider used to read the file is
     * determined from the data file's extension.
     *
     * @param dataSetsFile
     *            the test data set file
     * @return the data sets
     */
Returns the test data sets contained in the given test data file. The data set provider used to read the file is
determined from the data file's extension.

@param dataSetsFile
the test data set file
@return the data sets
Returns the test data sets contained in the given test data file . The data set provider used to read the file is determined from the data file ' s extension . @param dataSetsFile the test data set file @return the data sets
public static List<Map<String, String>> readDataSetsFromFile(final File dataSetsFile)
    {
        LOGGER.debug("Test data set file used: " + dataSetsFile.getAbsolutePath());
        final String fileExtension = FilenameUtils.getExtension(dataSetsFile.getName());
        switch (fileExtension.toLowerCase())
        {
            case "csv":
                return CsvFileReader.readFile(dataSetsFile);
            case "xml":
                return XmlFileReader.readFile(dataSetsFile);
            case "json":
                return JsonFileReader.readFile(dataSetsFile);
            case "properties":
                return PropertyFileReader.readFile(dataSetsFile);
            default:
                throw new NotImplementedException("Not implemented for file type: " + fileExtension);
        }
    }
public static List < Map < String , String > > readDataSetsFromFile ( final File dataSetsFile ) { LOGGER . debug ( "Test data set file used: " + dataSetsFile . getAbsolutePath ( ) ) ; final String fileExtension = FilenameUtils . getExtension ( dataSetsFile . getName ( ) ) ; switch ( fileExtension . toLowerCase ( ) ) { case "csv" : return CsvFileReader . readFile ( dataSetsFile ) ; case "xml" : return XmlFileReader . readFile ( dataSetsFile ) ; case "json" : return JsonFileReader . readFile ( dataSetsFile ) ; case "properties" : return PropertyFileReader . readFile ( dataSetsFile ) ; default : throw new NotImplementedException ( "Not implemented for file type: " + fileExtension ) ; } }
Returns the test data sets contained in the given test data file.
Returns the test data sets contained in the given test data file .