Generic structure for reading test data in JSON, CSV and YAML formats. Each format has it's own implementation,
which should be passed to
use(Class) method.
use(CsvReader.class).withTarget(User.class).withSource("users.csv").read();
use(YamlReader.class).withTarget(TravisConfiguration.class).read();
use(JsonReader.class).withTarget(Animal.class).withSource("http://animals.json").read();
Please note that
TestDataReader.DataBuilder.withSource(String) is optional. But if
it's skipped, you have to use
Source annotation to define source path.