Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u5
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Reinhold
u5
Commits
d5144628
Commit
d5144628
authored
5 years ago
by
Alexander Reinhold
Browse files
Options
Downloads
Patches
Plain Diff
changes
parent
cdd782af
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CarSale/pom.xml
+49
-0
49 additions, 0 deletions
CarSale/pom.xml
CarSale/src/test/java/RentCarStepdefs.java
+46
-0
46 additions, 0 deletions
CarSale/src/test/java/RentCarStepdefs.java
CarSale/src/test/java/RunCucumberTest.java
+3
-0
3 additions, 0 deletions
CarSale/src/test/java/RunCucumberTest.java
with
98 additions
and
0 deletions
CarSale/pom.xml
+
49
−
0
View file @
d5144628
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
CarSale/src/test/java/RentCarStepdefs.java
+
46
−
0
View file @
d5144628
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
();
}
}
This diff is collapsed.
Click to expand it.
CarSale/src/test/java/RunCucumberTest.java
+
3
−
0
View file @
d5144628
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment