jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • JBehave
  • JBEHAVE-716

Add an optional StoryFinder class element to @UsingPaths annotation

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.6
  • Component/s: Core
  • Labels:
    • annotation

Description

Currently @UsingPaths is using one fixed instance of StoryFinder class.
In order to use a custom StoryFinder class with the annotation, I would like to include an optional storyFinder element in the @UsingPaths annotation.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Cristiano Gavião added a comment - 14/Feb/12 8:40 AM

Since we are informing the path and the StoryFinder class in the @UsingPaths, we need a runStoriesAsPaths() method without parameter in Embedder class.
Or perhaps a new Embedder abstract class that already implements the run() method of Embeddable interface.

Show
Cristiano Gavião added a comment - 14/Feb/12 8:40 AM Since we are informing the path and the StoryFinder class in the @UsingPaths, we need a runStoriesAsPaths() method without parameter in Embedder class. Or perhaps a new Embedder abstract class that already implements the run() method of Embeddable interface.
Hide
Permalink
Mauro Talevi added a comment - 16/Feb/12 2:17 AM

@UsingPaths is used by the AnnotatedPathRunner and the paths configured are passed to the Embedder runStoriesAsPaths(List<String>) method.

If you want, you can use the annotated builder to get the paths directly from the annotation.

new AnnotationBuilder(A.class).findPaths()

We can devise other uses of @UsingPaths but it should be tracked by another Jira issue.

Show
Mauro Talevi added a comment - 16/Feb/12 2:17 AM @UsingPaths is used by the AnnotatedPathRunner and the paths configured are passed to the Embedder runStoriesAsPaths(List<String>) method. If you want, you can use the annotated builder to get the paths directly from the annotation.
new AnnotationBuilder(A.class).findPaths()
We can devise other uses of @UsingPaths but it should be tracked by another Jira issue.

People

  • Assignee:
    Mauro Talevi
    Reporter:
    Cristiano Gavião
Vote (0)
Watch (0)

Dates

  • Created:
    07/Feb/12 10:57 AM
    Updated:
    16/Feb/12 2:17 AM
    Resolved:
    16/Feb/12 2:17 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.