Hi!

I already use a my own LoadFromJIRA story loader that takes jira story ids
instead of paths as input to search for stories.
I also use the AnnotatedPathRunner to run my tests. There is a @UsingPaths
annotation which is read by the findPaths() method from the
AnnotationBuilder.
Since I dont need paths, but just Ids, the impementation of findPaths() is
not applicable in my case.


The idea is to implement my own ExtendedAnnotatedPathRunner with its own
annotation @UseStories for the story ids from JIRA.
@UseStories(stories={"story-1074", "story-2347"})

The ExtendedAnnotatedPathRunner  uses a new ExtendedAnnotatedBuilder that
handles the new Annotation @UseStories.

The appropriate findPath() implementation in the ExtendedAnnotatedBuilder
would be:

    public List<String> findPaths() {
        if (!finder.isAnnotationPresent(UseStories.class)) {
            return new ArrayList<String>();
        }
        List<String> includes = finder.getAnnotatedValues(UseStories.class,
String.class, "stories");
        return includes;
    }


Is there a easier way to do this? SInce I just could use
@UsingPaths.includes to set my story ids, but with my own findPaths()
implementation.

Thanks in advance.

Olmo

Reply via email to