Skip to content
Snippets Groups Projects
Commit d5144628 authored by Alexander Reinhold's avatar Alexander Reinhold
Browse files

changes

parent cdd782af
No related branches found
No related tags found
No related merge requests found
......@@ -7,5 +7,54 @@
<groupId>groupId</groupId>
<artifactId>u5_p</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<cucumberVersion>4.8.0</cucumberVersion>
</properties>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${cucumberVersion}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${cucumberVersion}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>settings.properties</include>
</includes>
</resource>
</resources>
</build>
</project>
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class RentCarStepdefs {
@Given("There is a car available to rent")
public void there_is_a_car_available_to_rent() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@When("Marvin took a test drive")
public void marvin_took_a_test_drive() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@When("Marvin later decides to rent the car")
public void marvin_later_decides_to_rent_the_car() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@Then("Marvin should get an invoice")
public void marvin_should_get_an_invoice() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@When("Patrick took a test drive")
public void patrick_took_a_test_drive() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@When("Patrick later decides to rent the car")
public void patrick_later_decides_to_rent_the_car() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
@Then("Patrick wont be able to rent the car")
public void patrick_wont_be_able_to_rent_the_car() {
// Write code here that turns the phrase above into concrete actions
throw new cucumber.api.PendingException();
}
}
......@@ -5,4 +5,7 @@ import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty"}, features={"src/test/resources/car/RentCar.feature"})
public class RunCucumberTest {
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment