use of cucumber.runtime.ParameterInfo in project cucumber-jvm by cucumber.
the class GosuStepDefinition method getParameterInfos.
private List<ParameterInfo> getParameterInfos() {
IType[] parameterTypes = block.getFunctionType().getParameterTypes();
List<ParameterInfo> result = new ArrayList<ParameterInfo>(parameterTypes.length);
for (IType parameterType : parameterTypes) {
// TODO: Can we get more info from the parameterType?
result.add(new ParameterInfo(String.class, null, null, null));
}
return result;
}
use of cucumber.runtime.ParameterInfo in project cucumber-jvm by cucumber.
the class DataTable method create.
private static DataTable create(List<?> raw, Locale locale, String format, String... columnNames) {
ParameterInfo parameterInfo = new ParameterInfo(null, format, null, null);
TableConverter tableConverter = new TableConverter(new LocalizedXStreams(Thread.currentThread().getContextClassLoader()).get(locale), parameterInfo);
return tableConverter.toTable(raw, columnNames);
}
use of cucumber.runtime.ParameterInfo in project cucumber-jvm by cucumber.
the class ToDataTableTest method createTableConverterWithDateFormat.
@Before
public void createTableConverterWithDateFormat() {
LocalizedXStreams.LocalizedXStream xStream = new LocalizedXStreams(Thread.currentThread().getContextClassLoader()).get(Locale.US);
tc = new TableConverter(xStream, new ParameterInfo(null, DD_MM_YYYY, null, null));
}
Aggregations