Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
Junit5-mockito
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vikram singh
Junit5-mockito
Commits
ae9e1dad
Commit
ae9e1dad
authored
May 09, 2020
by
vikram singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified README.md file
parent
6fe8956f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
README.md
README.md
+20
-1
No files found.
README.md
View file @
ae9e1dad
...
...
@@ -33,6 +33,8 @@
a.Create 10 items in item table using postman using below url and body in json;
POST: http://localhost:8991/item (for save/update)
with body like below:
{
"id":1,
"name":"pencil",
...
...
@@ -47,6 +49,10 @@
using these itemId we are going to order items;
4. one can delete the item using DELETE:-http://localhost:8991/item?id=2 here id is itemid
Placing the Order
single/bulk order by customer
...
...
@@ -56,6 +62,8 @@
payload for single item be like :-
{
...
...
@@ -69,6 +77,8 @@
],
"emailId":"vikram19977@gmail.com"
}
payload for more than one quantity of single item
{
"orderId":1,
...
...
@@ -81,8 +91,11 @@
],
"emailId":"vikram19977@gmail.com"
}
payload for more then one item
{
"orderId":1,
"orderedItems":[
...
...
@@ -100,15 +113,21 @@
"emailId":"testuser@gmail.com"
}
i. If we have happy path means order is placed then we will get the message like ::
'sample output'- "Order Placed...! you have spent :"+xxxx +" Rupees"; xxxx=calculated total spent amount;
ii. for any of the exception like out of stock item we have various messages coming to the customer accordinglg
It is already tested by various component test cases written in test folder
for both ItemController and OrderController;
6.GET:localhost:8991/order -> for listing all orders placed by all the customers
sample output:
...
...
@@ -194,7 +213,7 @@
}
]
8.In TestCases
I have used Junit5 conec
ts as well with the 87% of testcase coverage;
8.In TestCases
used Junit5 concep
ts as well with the 87% of testcase coverage;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment