Skip to content

@Transform does not work in Scala DSL #2

Closed
@mpkorstanje

Description

@mpkorstanje

From cucumber/cucumber-jvm#922

@Transform in Scala DSL does not work and I have to define my own class using XStreamConverter to make it work.

class MyClassConverter extends Transformer[MyClass] {
 //implementation of Transform function
}

def given(@Transform(classOf[MyClassConverter]) c: MyClass) {
    //Some Code
}

Given("""^I have my (.*) as part of my given $""".stripMargin) { given _ }

This does not pick MyClassConverter as a converter for MyClass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions