Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

ParameterType annotation seems not to be available in cucumber-java8 #560

Open
corzani opened this issue Dec 10, 2020 · 0 comments
Open
Labels
📖 documentation Improvements or additions to documentation

Comments

@corzani
Copy link

corzani commented Dec 10, 2020

I am using Kotlin with the cucumber-java8 (6.9.0) dependency.
Regarding the page "https://cucumber.io/docs/cucumber/cucumber-expressions/", it seems the annotation ParameterType (used in the "color" example) isn't available there.
I had to use the DSL and change it to something like:

class TestRules : En {
    init {
         ParameterType("color", "red|blue|yellow") { color -> ... }
    }
}

This approach in Kotlin isn't very clear (from the documentation) and wasn't working for me, should the documentation contain even the java8 approach?

@aslakhellesoy aslakhellesoy added the 📖 documentation Improvements or additions to documentation label Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📖 documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants