I'm updating my cucumber version from old info.cukes
to latest io.cucumber
(v6.8.1) and some of my tests are failing now with java.lang.IllegalArgumentException at BuiltInParameterTransformer.java:114
How can I pass list of strings as parameter in new cucumber?
I read this answer but it doesn't work for me. You can find below an example to reproduce my problem:
Scenario Outline: Testing lists of strings
When Great test <first> <second> <third>
Examples:
| first | second | third |
| "simple" | "listOfParams" | "another simple" |
| "simple" | "list,OF,params" | "another simple" |
@When("^Great test \"(.*?)\" \"(.*?)\" \"(.*?)\"$")
public void great_test(String string, List<String> string2, String string3) {
System.out.println(string);
System.out.println(string2); // I want to get here ["listOfParams"] and ["list", "OF", "params"]
System.out.println(string3);
}