Created
June 10, 2013 06:36
-
-
Save xconnecting/5746907 to your computer and use it in GitHub Desktop.
[Groovy] cucumber-jvm-groovy sample (step definition - pending)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cucumber.runtime.PendingException | |
this.metaClass.mixin(cucumber.runtime.groovy.Hooks) | |
this.metaClass.mixin(cucumber.runtime.groovy.EN) | |
Given(~'^I have a hello app with "([^"]*)"$') { String arg1 -> | |
// Express the Regexp above with the code you wish you had | |
throw new PendingException() | |
} | |
When(~'^I ask it to say hi$') { -> | |
// Express the Regexp above with the code you wish you had | |
throw new PendingException() | |
} | |
Then(~'^it should answer with "([^"]*)"$') { String arg1 -> | |
// Express the Regexp above with the code you wish you had | |
throw new PendingException() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment