tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject [4/4] tomee git commit: Update cucumber test
Date Wed, 23 Sep 2015 21:43:54 GMT
Update cucumber test


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/41435dc1
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/41435dc1
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/41435dc1

Branch: refs/heads/master
Commit: 41435dc10b2cf30a9efbe8197cc55aa21a508367
Parents: 792d06a
Author: andygumbrecht@apache.org <andy.is@gmx.de>
Authored: Wed Sep 23 23:43:32 2015 +0200
Committer: andygumbrecht@apache.org <andy.is@gmx.de>
Committed: Wed Sep 23 23:43:32 2015 +0200

----------------------------------------------------------------------
 examples/cucumber-jvm/pom.xml                   |  9 ++-
 .../org/superbiz/cucumber/CucumberTest.java     | 50 ++++++------
 .../org/superbiz/cucumber/HelloStepDef.java     | 84 ++++++++++----------
 3 files changed, 72 insertions(+), 71 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/41435dc1/examples/cucumber-jvm/pom.xml
----------------------------------------------------------------------
diff --git a/examples/cucumber-jvm/pom.xml b/examples/cucumber-jvm/pom.xml
index 28833da..8555603 100644
--- a/examples/cucumber-jvm/pom.xml
+++ b/examples/cucumber-jvm/pom.xml
@@ -17,7 +17,8 @@
     limitations under the License.
 -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.superbiz</groupId>
   <artifactId>cucumber-jvm</artifactId>
@@ -72,7 +73,7 @@
     <dependency>
       <groupId>info.cukes</groupId>
       <artifactId>cucumber-openejb</artifactId>
-      <version>1.0.10</version>
+      <version>1.2.2</version>
       <scope>test</scope>
       <exclusions>
         <exclusion>
@@ -84,13 +85,13 @@
     <dependency>
       <groupId>info.cukes</groupId>
       <artifactId>cucumber-junit</artifactId>
-      <version>1.0.10</version>
+      <version>1.2.2</version>
       <scope>test</scope>
     </dependency>
     <dependency> <!-- needed by last released versino of cucumber-openejb -->
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
-      <version>1.2.16</version>
+      <version>1.2.17</version>
       <scope>test</scope>
     </dependency>
   </dependencies>

http://git-wip-us.apache.org/repos/asf/tomee/blob/41435dc1/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/CucumberTest.java
----------------------------------------------------------------------
diff --git a/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/CucumberTest.java b/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/CucumberTest.java
index 28bbafe..f4abf95 100644
--- a/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/CucumberTest.java
+++ b/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/CucumberTest.java
@@ -1,25 +1,25 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.cucumber;
-
-import cucumber.junit.Cucumber;
-import org.junit.runner.RunWith;
-
-@RunWith(Cucumber.class)
-public class CucumberTest {
-    // the suite, will load automatically the features
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.cucumber;
+
+import cucumber.api.junit.Cucumber;
+import org.junit.runner.RunWith;
+
+@RunWith(Cucumber.class)
+public class CucumberTest {
+    // the suite, will load automatically the features
+}

http://git-wip-us.apache.org/repos/asf/tomee/blob/41435dc1/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/HelloStepDef.java
----------------------------------------------------------------------
diff --git a/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/HelloStepDef.java b/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/HelloStepDef.java
index 7d21a88..b27e3a7 100644
--- a/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/HelloStepDef.java
+++ b/examples/cucumber-jvm/src/test/java/org/superbiz/cucumber/HelloStepDef.java
@@ -1,42 +1,42 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.cucumber;
-
-import cucumber.annotation.en.Given;
-import cucumber.annotation.en.Then;
-
-import javax.inject.Inject;
-
-import static org.junit.Assert.assertEquals;
-
-public class HelloStepDef {
-
-    @Inject
-    private Hello hello;
-
-    private String name;
-
-    @Given("^A name '([a-z]*)'$")
-    public void initName(final String name) {
-        this.name = name;
-    }
-
-    @Then("^The bean says '([ a-z]*)'$")
-    public void checkResult(final String result) {
-        assertEquals(result, hello.hello(name));
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.cucumber;
+
+import cucumber.api.java.en.Given;
+import cucumber.api.java.en.Then;
+
+import javax.inject.Inject;
+
+import static org.junit.Assert.assertEquals;
+
+public class HelloStepDef {
+
+    @Inject
+    private Hello hello;
+
+    private String name;
+
+    @Given("^A name '([a-z]*)'$")
+    public void initName(final String name) {
+        this.name = name;
+    }
+
+    @Then("^The bean says '([ a-z]*)'$")
+    public void checkResult(final String result) {
+        assertEquals(result, hello.hello(name));
+    }
+}


Mime
View raw message