diff --git a/cucumber/README.md b/cucumber/README.md deleted file mode 100644 index 5466d5c561..0000000000 --- a/cucumber/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### Relevant articles - -- [Cucumber and Scenario Outline](http://www.baeldung.com/cucumber-scenario-outline) diff --git a/cucumber/pom.xml b/cucumber/pom.xml deleted file mode 100644 index 23509f46f6..0000000000 --- a/cucumber/pom.xml +++ /dev/null @@ -1,93 +0,0 @@ - - 4.0.0 - com.baeldung - cucumber - 1.0.0-SNAPSHOT - jar - - - 1.8 - 1.8 - UTF-8 - 3.5.1 - 1.7.21 - 1.1.7 - 4.12 - 1.3 - 1.2.5 - 2.19.1 - - - - - - - - info.cukes - cucumber-junit - ${cucumber.version} - test - - - - info.cukes - cucumber-java - ${cucumber.version} - test - - - - org.hamcrest - hamcrest-library - ${hamcrest.library.version} - test - - - - org.slf4j - slf4j-api - ${slf4j.version} - - - - ch.qos.logback - logback-classic - ${logback.version} - - - - ch.qos.logback - logback-core - ${logback.version} - - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven.compiler.plugin.version} - - true - true - ${java.source.version} - ${java.target.version} - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - **/*IntegrationTest.java - - - - - - - \ No newline at end of file diff --git a/cucumber/src/test/resources/logback-test.xml b/cucumber/src/test/resources/logback-test.xml deleted file mode 100644 index e980d88693..0000000000 --- a/cucumber/src/test/resources/logback-test.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n%ex - - - - - - - - - \ No newline at end of file diff --git a/pom.xml b/pom.xml index 58f1256b17..b137ccc944 100644 --- a/pom.xml +++ b/pom.xml @@ -210,7 +210,6 @@ rabbitmq vertx spring-data-gemfire - cucumber mybatis spring-drools diff --git a/testing/README.md b/testing/README.md index 0960ce5957..fd94279fdf 100644 --- a/testing/README.md +++ b/testing/README.md @@ -8,4 +8,5 @@ - [AssertJā€™s Java 8 Features](http://www.baeldung.com/assertJ-java-8-features) - [AssertJ for Guava](http://www.baeldung.com/assertJ-for-guava) - [Introduction to AssertJ](http://www.baeldung.com/introduction-to-assertj) +- [Cucumber and Scenario Outline](http://www.baeldung.com/cucumber-scenario-outline) diff --git a/testing/pom.xml b/testing/pom.xml index 3b336d0904..2fa64702f5 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -18,6 +18,13 @@ 3.0.0 + + org.hamcrest + hamcrest-library + ${hamcrest.library.version} + test + + junit junit @@ -31,6 +38,20 @@ test + + info.cukes + cucumber-junit + ${cucumber.version} + test + + + + info.cukes + cucumber-java + ${cucumber.version} + test + + org.pitest @@ -111,6 +132,8 @@ + 1.3 + 1.2.5 1.1.10 4.12 0.7.7.201606060606 diff --git a/cucumber/src/main/java/com/baeldung/cucumber/calculator/Calculator.java b/testing/src/main/java/com/baeldung/cucumber/Calculator.java similarity index 68% rename from cucumber/src/main/java/com/baeldung/cucumber/calculator/Calculator.java rename to testing/src/main/java/com/baeldung/cucumber/Calculator.java index fd4a3bad7b..294a54a4e9 100644 --- a/cucumber/src/main/java/com/baeldung/cucumber/calculator/Calculator.java +++ b/testing/src/main/java/com/baeldung/cucumber/Calculator.java @@ -1,4 +1,4 @@ -package com.baeldung.cucumber.calculator; +package com.baeldung.cucumber; public class Calculator { public int add(int a, int b) { diff --git a/cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorIntegrationTest.java b/testing/src/test/java/com/baeldung/testing/calculator/CalculatorIntegrationTest.java similarity index 91% rename from cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorIntegrationTest.java rename to testing/src/test/java/com/baeldung/testing/calculator/CalculatorIntegrationTest.java index f44d38421d..1cdb92090a 100644 --- a/cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorIntegrationTest.java +++ b/testing/src/test/java/com/baeldung/testing/calculator/CalculatorIntegrationTest.java @@ -1,4 +1,4 @@ -package com.baeldung.cucumber.calculator; +package com.baeldung.testing.calculator; import org.junit.runner.RunWith; diff --git a/cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorRunSteps.java b/testing/src/test/java/com/baeldung/testing/calculator/CalculatorRunSteps.java similarity index 90% rename from cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorRunSteps.java rename to testing/src/test/java/com/baeldung/testing/calculator/CalculatorRunSteps.java index 9c0e920a8d..ef6dff9617 100644 --- a/cucumber/src/test/java/com/baeldung/cucumber/calculator/CalculatorRunSteps.java +++ b/testing/src/test/java/com/baeldung/testing/calculator/CalculatorRunSteps.java @@ -1,12 +1,12 @@ -package com.baeldung.cucumber.calculator; - -import org.hamcrest.Matchers; -import org.junit.Assert; +package com.baeldung.testing.calculator; +import com.baeldung.cucumber.Calculator; import cucumber.api.java.Before; import cucumber.api.java.en.Given; import cucumber.api.java.en.Then; import cucumber.api.java.en.When; +import org.hamcrest.Matchers; +import org.junit.Assert; public class CalculatorRunSteps { diff --git a/cucumber/src/test/resources/features/calculator-scenario-outline.feature b/testing/src/test/resources/features/calculator-scenario-outline.feature similarity index 100% rename from cucumber/src/test/resources/features/calculator-scenario-outline.feature rename to testing/src/test/resources/features/calculator-scenario-outline.feature diff --git a/cucumber/src/test/resources/features/calculator.feature b/testing/src/test/resources/features/calculator.feature similarity index 100% rename from cucumber/src/test/resources/features/calculator.feature rename to testing/src/test/resources/features/calculator.feature