Skip to content

Shopping Cart Application - is a sample App that throws exceptions (Caught, Uncaught, Swallowed). This also contains relevant business context for exceptions. e.g. When we get a ParseException in Customer DateOfBirth variable, we can look at variable state of entire Customer Object (including his Address, Email, Orders etc).

Notifications You must be signed in to change notification settings

daverted/ShoppingCart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To execute this ShoppingCartApplication from command prompt, you need a JDK and Maven

  1. Go to the ShoppingCart Folder and execute
mvn clean compile package
    • To run "All workflows", execute
    ./runAllWorkflows.sh
    
    • To run "Swallowed exceptions", execute
    ./runSwallowedExceptions.sh
    
    • To run "Uncaught Exceptions", execute
    ./runUncaughtExceptions.sh
    

Note that you can change these 3 properties in the scripts

run_mode=ALL_WORKFLOWS
no_of_threads=10 
no_of_iterations=10000

Valid values for run_mode are: ALL_WORKFLOWS/SWALLOWED_EXCEPTION/UNCAUGHT_EXCEPTION. Default is ALL_WORKFLOWS

You can also specify the OverOps ApplicationName and Deployment name from the scripts, e.g.

-Dtakipi.name=ShoppingCartApplication -Dtakipi.deployment.name=v1.0
  1. You can also run this from maven command line using the below command
  	mvn exec:java
  1. To execute the maven tests run the below command
  	mvn test
  1. To get the surefire report, run the below command
	mvn surefire-report:report

The report will be available here {base_dir}/ShoppingCart/target/site/surefire-report.html

Good Luck.

About

Shopping Cart Application - is a sample App that throws exceptions (Caught, Uncaught, Swallowed). This also contains relevant business context for exceptions. e.g. When we get a ParseException in Customer DateOfBirth variable, we can look at variable state of entire Customer Object (including his Address, Email, Orders etc).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 97.1%
  • Shell 2.9%