net.thucydides.core.csv.CSVTestDataSource Maven / Gradle / Ivy
The newest version!
package net.thucydides.core.csv;
import au.com.bytecode.opencsv.CSVReader;
import ch.lambdaj.function.convert.Converter;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import net.thucydides.core.steps.StepFactory;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import static ch.lambdaj.Lambda.convert;
/**
* Test data from a CSV file.
*/
public class CSVTestDataSource implements TestDataSource {
private final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy