Hi,
the short answer is no. A step is defined at class level, not at
instance level.
What you could do is to define two different steps classes, one with the
step marked as pending and the other implemented, and configure the
steps class used according to the story.
But, taking a step back (pun intended :-), what is your use case? Why
would you want to make a step that is implemented in one story, pending
in another?
You don't need to mark methods as @Pending for the corresponding step to
be pending. Simply write a step that is not yet defined and JBehave
will automatically treat it as pending. So in your case, you need
only slightly modify the language of the step already defined, e.g. by
adding a "TBD" or better yet by describing in the language how it
differs from the step already defined.
Cheers
On 10/08/2012 13:28, mary walshe wrote:
Hi,
I would like to make one of my steps pending in one story.
I know using @Pending annotation will mark it pending for all
instances of the step.
I reuse this step in multiple stories but I would only like to have it
pending of one particular story is this possible?
Thanks
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email