Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SQA Project Part1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ahmad Arslan
SQA Project Part1
Commits
6ff9f030
Commit
6ff9f030
authored
2 years ago
by
Sara Prifti
Browse files
Options
Downloads
Patches
Plain Diff
Edited case where customerId==null
parent
9663b357
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/rwth/swc/sqa/Application.java
+8
-0
8 additions, 0 deletions
src/main/java/de/rwth/swc/sqa/Application.java
src/test/java/de/rwth/swc/sqa/CustomerTest.java
+1
-2
1 addition, 2 deletions
src/test/java/de/rwth/swc/sqa/CustomerTest.java
with
9 additions
and
2 deletions
src/main/java/de/rwth/swc/sqa/Application.java
+
8
−
0
View file @
6ff9f030
...
...
@@ -17,6 +17,7 @@ public class Application {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);}
/*
@Bean
CommandLineRunner run(DataService dataService) {
return args -> {
...
...
@@ -31,6 +32,13 @@ public class Application {
discountCards.add(discountCard);
dataService.saveDiscountCardToCustomer(customer.getId(), discountCards);
};
}
*/
}
This diff is collapsed.
Click to expand it.
src/test/java/de/rwth/swc/sqa/CustomerTest.java
+
1
−
2
View file @
6ff9f030
...
...
@@ -59,7 +59,7 @@ public class CustomerTest {
@Test
@Order
(
2
)
public
void
addDiscountCardToCustomerTest
()
{
Long
customerId
=
0L
;
Long
customerId
=
null
;
String
path
=
"/customers/"
+
customerId
+
"/discountcards"
;
Map
<
String
,
Object
>
parms
=
new
HashMap
<
String
,
Object
>();
//404
...
...
@@ -135,7 +135,6 @@ public class CustomerTest {
RestAssured
.
given
().
when
().
get
(
path
).
then
().
statusCode
(
200
);
}
}
...
...
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