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
Compare revisions
master to d5144628ae4c33689c3314b67fb0b5154cb20e07
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
areinh2s/u5
Select target project
No results found
d5144628ae4c33689c3314b67fb0b5154cb20e07
Select Git revision
Branches
master
Swap
Target
pkaste2g/u5
Select target project
dmakar2s/u5
jbaeum2s/u5
srosau2s/u5
jwittk2s/u5
pkaste2g/u5
lweime2s/u5
jkunke2s/u5
tklei12s/u5
kschn22s/u5
atuer2s/u5
gvan2s/u5
prausc2s/u5
archived_bheitf2s_1/u5
omoukh2s/u5
sjanow2s/u5
archived_taltan2s_1/u5
areinh2s/u5
archived_fklug2s_1/u5
mbrau12s/u5
lknaub2s/u5
mmaus2s/u5
gsalem2s/u5
mbabae2s/u5
archived_mpeter2s_1/u5
totto2s/u5
dnanda2s/u5
archived_cwagne2s_1/u5
sfeier2s/u5
archived_jhaber2s_1/u5
dschm62s/u5
toelri2s/u5
archived_jsasse2s_1/u5
jpfeif2s/u5
archived_mparre2s_1/u5
archived_jebert2s_1/u5
archived_fkirch2s_1/u5
36 results
master
Select Git revision
Branches
master
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
changes
· d5144628
Alexander Reinhold
authored
5 years ago
d5144628
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
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
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
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.