-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UndefinedDataTableTypeException with Boolean #322
Comments
Thanks for raising the issue @ckorakidis, next time do not hesitate to open a fresh issue rather than commenting on an already fixed one. I can reproduce the issue but while I thought it would be related to Scala's In the meantime, the easier workaround would be to parse as a val data: Map[String, Option[Boolean]] =
table
.asScalaMap[String, String]
.map { case (k, v) => k -> v.map(_.toBoolean) } |
See cucumber/cucumber-jvm#2611 for the JVM issue |
Thanks @gaeljw, thought I was missing something. |
Workaround for the time being: |
Fixed with Cucumber Scala 8.10.0 |
👓 What did you see?
From comment from @ckorakidis at #50 (comment)
✅ What did you expect to see?
Cucumber should be able to convert to a map with
Boolean
(Scala or Java) values.📦 Which tool/library version are you using?
Cucumber Scala 8.9.0
Cucumber core 7.7.0
🔬 How could we reproduce it?
With Scala Booleans
The error:
With Java Boolean
Replacing
Boolean
withjava.lang.Boolean
does not help, the same error is still present:📚 Any additional context?
N/A
The text was updated successfully, but these errors were encountered: