https://github.com/conorheffron/shoppingcart-java
Sample App to manage Shopping Cart items (add item, calculate total, tax, net price..). Focus on test coverage.
https://github.com/conorheffron/shoppingcart-java
h2-database jacoco-report jdk-21 jpa mockito-junit sonar-qube sonarcloud sonarqube spring-boot spring-boot-4 spring-test test-automation
Last synced: 3 months ago
JSON representation
Sample App to manage Shopping Cart items (add item, calculate total, tax, net price..). Focus on test coverage.
- Host: GitHub
- URL: https://github.com/conorheffron/shoppingcart-java
- Owner: conorheffron
- License: gpl-3.0
- Created: 2025-09-18T14:43:02.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-03-28T20:49:34.000Z (3 months ago)
- Last Synced: 2026-03-28T22:29:02.090Z (3 months ago)
- Topics: h2-database, jacoco-report, jdk-21, jpa, mockito-junit, sonar-qube, sonarcloud, sonarqube, spring-boot, spring-boot-4, spring-test, test-automation
- Language: Java
- Homepage: https://conorheffron.github.io/shoppingcart-java/
- Size: 1.59 MB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# shoppingcart-java
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/conorheffron/shoppingcart-java/actions/workflows/gradle.yml)
[](https://github.com/conorheffron/shoppingcart-java/actions/workflows/sonarcloud.yml)
[](https://sonarcloud.io/summary/new_code?id=conorheffron_shoppingcart-java)
[SonarQube Overall Code Summary](https://sonarcloud.io/summary/overall?id=conorheffron_shoppingcart-java&branch=main)

## Tech:
- Java 21 (LTS), Maven 3.9, Gradle 9, IntelliJ IDEA 2025.2.1 (Community Edition), SonarQube, JaCoCo
## Test Data
- [https://conorheffron.github.io/shopping-cart-test-data/products/](https://github.com/conorheffron/shopping-cart-test-data/tree/main/products)
## Maven Build
```
./gradlew clean build test
```

## Preview Product Info by Cereal ID(S) to find associated single unit 'price'
- Cornflakes

- Weetabix

## Sample Test Case as JUnit test (including JSON data fetch call(s))

## Test Coverage Report

## Convert to Gradle Build & Run with Tests
- `gradle init --type pom`
