Usage Instructions :
-
provided sample data for easy simulation
-
provided test scenario in JUnit for easy customization
-
inside "dist-jar" folder, run
-
#java -jar InventoryApp-1.0-jar-with-dependencies.jar
-
or, open with your favorite IDE then run main class [InventoryMain].
Steps :
- Identify sample data
- Initialize data
- Identify Cart data
- Indentify how selecting can effect to inventory data
- Identify Cart Status each user.
- Identify Order data
- Indentify how ordering can effect to selected Cart data
- Indentify stocks status
- Finishing order data
- Summary data
Scenarios :
- Selecting, insert into cart data
- Ordering, insert into order data
- Determining whether total item for purchase order same as cart data
- Assigning back to stock, if available
- Check Stock Status
Hints : Try to change total item when ordering, order total less than cart total.
Happy Coding :) ~mrhezqhe