Hi,

thank you for you answer. I changed the implementation now and removed the 
idea of an abstract story. So I created two classes that extend from 
JUnitStories. But I still get the same error when I run it with maven. Do 
you have another idea what could cause this error?

Greetings,
Marcus

Am Montag, 9. November 2015 20:09:00 UTC+1 schrieb mauro.talevi:
>
> Hi,
>
> what you're trying to do looks rather bizarre.   
>
> If you want to have an AbstractStory as a base for single stories to 
> inherit from then it should extend JUnitStory and not JUnitStories.   
>
> If you want to have a single Embeddable that runs multiple .story files 
> than extend JUnitStories but don't make it abstract.  
>
> You're mixing two concerns here.   JUnitStories was never designed to be 
> used in this way. 
>
> Cheers
>
> On 09/11/2015 14:43, Marcus Held wrote:
>
> Hi,
>
> Currently I have the problem, that I got the following error when 
> executing my stories in maven:
>
> [ERROR] Failed to execute goal 
>> org.jbehave:jbehave-maven-plugin:4.0.4:run-stories-as-embeddables 
>> (run-stories-as-embeddables) on project xx: Failed to run stories as 
>> embeddables: Failure in running embeddable: 
>> com.xx.behaviour.stories.LootStories: Task 
>> java.util.concurrent.FutureTask@17207f5b rejected from 
>> java.util.concurrent.ThreadPoolExecutor@373052b5[Terminated, pool size = 0, 
>> active threads = 0, queued tasks = 0, completed tasks = 5] -> [Help 1]
>>
>
>  
> The plugin configuration is as follow:
> <plugin>
>   <groupId>org.jbehave</groupId>
>   <artifactId>jbehave-maven-plugin</artifactId>
>   <version>${jbehave.version}</version>
>   <executions>
>     <execution>
>       <id>run-stories-as-embeddables</id>
>       <phase>integration-test</phase>
>       <configuration>
>         <scope>test</scope>
>         <includes>
>           <include>**/*Stories.java</include>
>         </includes>
>         <ignoreFailureInStories>true</ignoreFailureInStories>
>         <ignoreFailureInView>false</ignoreFailureInView>
>         <skip>${skipTests}</skip>
>       </configuration>
>       <goals>
>         <goal>run-stories-as-embeddables</goal>
>       </goals>
>     </execution>
>   </executions>
> </plugin>
>
> I have these problems since I introduced an abstract JUnitStores 
> implementation:
>
> @RunWith(JUnitReportingRunner.class)
> public abstract class AbstractStory extends JUnitStories {
>     
>     @Override
>     public Configuration configuration() {
>         return new MostUsefulConfiguration().useStoryLoader(new 
> LoadFromClasspath(this.getClass().getClassLoader()))
>             .useStoryReporterBuilder(new StoryReporterBuilder().
> withDefaultFormats().withFormats(Format.HTML, Format.CONSOLE,
>                 Format.STATS));
>     }
>
>     @Override
>     protected List<String> storyPaths() {
>         final String storiesDir = "stories/";
>         final List<String> returnVal = storyNames().stream()
>                 .map(story -> storiesDir + story)
>                 .collect(Collectors.toList());
>         return returnVal;
>     }
>     
>     public abstract List<String> storyNames();
>
> }
>
> When I run the tests with JUnit everything works fine. Even when I run all 
> stories at once. 
>
> Do you have any idea what could cause this error and how to fix it?
>
> Thank you very much for your help.
>
> Best regards,
> Marcus
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JBehave Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> To view this discussion on the web, visit 
> <https://groups.google.com/d/msgid/jbehave-dev/44030db4-73d4-4fb4-8250-52c986fd0c41%40googlegroups.com?utm_medium=email&utm_source=footer>
> https://groups.google.com/d/msgid/jbehave-dev/44030db4-73d4-4fb4-8250-52c986fd0c41%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-dev/e207eb5d-7c86-4350-a0a6-39ea40ee1c57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to