Skip to content

provide JGivenStage outside of spring context - for kotlin allopen #395

@jangalinski

Description

@jangalinski

When using kotlin, all stage classes and functions have to declared open to get JGiven working.

The kotlin compiler plugin "all-open" can do this for you, which is very convenient. But it requires an annotation on class level to work.

The JGivenStage annotation used in jgiven-spring is a solution for this, but what if you do not use spring?

I ended up defining a custom JGivenStage annotation twice in my kotlin projects, so I would like to have a "centralized" solution.

Maybe introducing a jgiven-kotlin module could be a good place for this?

Would you be open for a PR?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions