st-tu-dresden / salespoint

A framework to develop point of sales applications, powered by Java and Spring Boot
https://tu-dresden.de/ing/informatik/smt/st/forschung/forschungsprojekte/salespoint
Apache License 2.0
178 stars 49 forks source link

Allow only unique AccountancyEntry when adding to Accountancy #431

Closed vrckr closed 1 year ago

vrckr commented 1 year ago

As proposed in #412 this change adds a check for whether the AccountancyEntry exists when calling Accountancy.add(…). If the entry already exists an IllegalArgumentException is thrown. Further a test case has been added to AccountancyTests which adds the same AccountancyEntry twice and excepts an IllegalArgumentException to be thrown.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information