Skip to content
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

@Transform does not work in Scala DSL #922

Closed
namiazad opened this issue Oct 15, 2015 · 1 comment
Closed

@Transform does not work in Scala DSL #922

namiazad opened this issue Oct 15, 2015 · 1 comment
Labels
🙏 help wanted Help wanted - not prioritized by core team

Comments

@namiazad
Copy link

@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

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🙏 help wanted Help wanted - not prioritized by core team
Projects
None yet
Development

No branches or pull requests

3 participants