Я пытаюсь JBehave, и мне нужно запустить мои 3 истории (каждая история имеет более или менее 2 сценария (testCases -> Given/When/Then)), используя maven.Ошибка при попытке запустить jbehave с maven 3 (RejectedExecutionException)
Когда я бегу МВН интеграции тест у меня есть следующее исключение
[ERROR] Failed to execute goal org.jbehave:jbehave-maven-plugin:4.0.5:run-stories-as-embeddables (run-stories-as-embeddables) on project bds: Failed to run stories as embeddables: Failures in running embeddables:
[ERROR] com.etermax.bds.test.stories.scenarios.RegisterContentScenarios: java.util.concurrent.RejectedExecutionException: Task [email protected]87 rejected from [email protected][Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
[ERROR] com.etermax.bds.test.stories.scenarios.GenerateReportScenarios: java.util.concurrent.RejectedExecutionException: Task [email protected] rejected from [email protected][Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 1]
Моя конфигурация ПОМ:
<plugin>
<groupId>org.jbehave</groupId>
<artifactId>jbehave-maven-plugin</artifactId>
<version>4.0.5</version>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>run-stories-as-embeddables</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>**/GenerateReportScenarios.java</include>
<include>**/DeleteReportScenarios.java</include>
<include>**/RegisterContentScenarios.java</include>
</includes>
<scope>test</scope>
<systemProperties>
<property>
<name>java.awt.headless</name>
<value>true</value>
</property>
</systemProperties>
<batch>true</batch>
<ignoreFailureInStories>false</ignoreFailureInStories>
<ignoreFailureInView>true</ignoreFailureInView>
</configuration>
<goals>
<goal>run-stories-as-embeddables</goal>
</goals>
</execution>
</executions>
</plugin>
Но если я запускаю одну историю (например, если я включаю только GenerateReportScenarios .java) исполнение было успешно ... Я не понимаю, что не так, когда я запускаю 3 истории вместе
Могут ли все помочь мне по этой проблеме?
Thanks.-