Nothing is the answer! I simply forgot to add my steps to the junit
scenario.. :)

Hope my spamming arent too disturbing.

2009/6/16 nino martinez wael <[email protected]>:
> Hi
>
> Seems I've been down this road before, my steps are being picked up
> but somehow they arent matching as they are set to pending, so what am
> I doing wrong:
>
> scenario:
>
> Scenario: User input ok
>
> Given a user with $2407792013
> When user enters $1010 and terminates with $#
> Then user hears phrase $11
>
> Scenario: User input fail
>
> Given a user with cpr $2407792013
> When user enters $1011 and terminates with $!
> Then user hears phrase $12
>
> code:
>
>        public ShadowControllerSteps() {
>                super(configuration);
>                configuration.useParameterConverters(new ParameterConverters(
>                                new SilentStepMonitor()));
>                configuration.usePatternBuilder(new 
> PrefixCapturingPatternBuilder("$"));
>
>        }
>
>       �...@given("a user with $cpr")
>        public void aUser(String cpr) {
>                System.out.print("given");
>
>        }
>
>       �...@when("user enters $input and terminates with $terminator")
>        public void inputAndTerminate(String input, String terminator) {
>                System.out.print("when");
>
>        }
>
>       �...@then("user hears phrase $phrase")
>        public void hearPhrase(String $phrase) {
>                System.out.print("then");
>        }
>
> And log:
>
> Scenario: User input ok
>
> Given a user with $2407792013 (PENDING)
> When user enters $1010 and terminates with $# (PENDING)
> Then user hears phrase $11 (PENDING)
>
> Scenario: User input fail
>
> Given a user with cpr $2407792013 (PENDING)
> When user enters $1011 and terminates with $! (PENDING)
> Then user hears phrase $12 (PENDING)
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to