You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2020/01/31 15:40:14 UTC

[isis] branch master updated: ISIS-2192: cucumber fixed, I think

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 7516c08  ISIS-2192: cucumber fixed, I think
7516c08 is described below

commit 7516c0858b86f667f31770e793a78c338b7ee86e
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Jan 31 15:16:04 2020 +0000

    ISIS-2192: cucumber fixed, I think
---
 testing/specsupport/adoc/modules/specsupport/pages/about.adoc | 6 +++---
 testing/specsupport/applib/pom.xml                            | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/testing/specsupport/adoc/modules/specsupport/pages/about.adoc b/testing/specsupport/adoc/modules/specsupport/pages/about.adoc
index 7ecc567..8fd70eb 100644
--- a/testing/specsupport/adoc/modules/specsupport/pages/about.adoc
+++ b/testing/specsupport/adoc/modules/specsupport/pages/about.adoc
@@ -203,14 +203,14 @@ public class SimpleObjectsStepDef {
 
     @Inject protected SimpleObjects simpleObjects;                      //<1>
 
-    @Given("^there are.* (\\d+) simple objects$")                       //<2>
+    @Given("^there (?:is|are).* (\\d+) simple object[s]?$")             //<2>
     public void there_are_N_simple_objects(int n) {
         final List<SimpleObject> list = wrap(simpleObjects).listAll();  //<3>
         assertThat(list.size(), is(n));
     }
 
-    @When("^.*create a .*simple object$")
-    public void create_a_simple_object() throws Throwable {
+    @When("^.*create (?:a|another) .*simple object$")
+    public void create_a_simple_object() {
         wrap(simpleObjects).create(UUID.randomUUID().toString());
     }
 
diff --git a/testing/specsupport/applib/pom.xml b/testing/specsupport/applib/pom.xml
index 489c0f5..6a44206 100644
--- a/testing/specsupport/applib/pom.xml
+++ b/testing/specsupport/applib/pom.xml
@@ -52,6 +52,11 @@
 		    <artifactId>cucumber-junit</artifactId>
 		</dependency>
 
+		<dependency>
+			<groupId>org.junit.vintage</groupId>
+			<artifactId>junit-vintage-engine</artifactId>
+		</dependency>
+
 	</dependencies>
 
 </project>