You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It simply throws any time DataTable argument is used:
cucumber.runtime.CucumberException: Not a List type: class java.lang.String
at cucumber.runtime.table.TableConverter.convert(TableConverter.java:55)
at cucumber.api.DataTable.convert(DataTable.java:77)
at cucumber.runtime.StepDefinitionMatch.tableArgument(StepDefinitionMatch.java:101)
at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:81)
at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38)
at cucumber.runtime.Runtime.runStep(Runtime.java:267)
at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:44)
at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:39)
at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:36)
I traced it down to the following comment in the current codebase:
classScalaStepDefinition(frame:StackTraceElement, name:String, pattern:String, parameterInfos:List[Class[_]], f:List[Any] =>Any) extendsStepDefinition {
privatevalargumentMatcher=newJdkPatternArgumentMatcher(Pattern.compile(pattern))
defmatchedArguments(step: Step) = argumentMatcher.argumentsFrom(step.getName)
defgetLocation(detail: Boolean) = frame.getFileName +":"+ frame.getLineNumber
defgetParameterCount() = parameterInfos.size()
// TODO: get rid of Transform.scala and leave transformation to be done by core. The correct implementation is commented out// below until this is fixed.// def getParameterType(index: Int, javaType: Type) = new ParameterInfo(parameterInfos.get(index), null)defgetParameterType(index: Int, javaType: Type) =newParameterInfo(classOf[String], null, null, null)
defexecute(i18n: I18n, args: Array[AnyRef]) { f(args.toList) }
defisDefinedAt(stackTraceElement: StackTraceElement) = stackTraceElement == frame
defgetPattern= pattern
}
The text was updated successfully, but these errors were encountered:
It simply throws any time DataTable argument is used:
I traced it down to the following comment in the current codebase:
The text was updated successfully, but these errors were encountered: