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.
As proposed in #412 this change adds a check for whether the
AccountancyEntry
exists when callingAccountancy.add(…)
. If the entry already exists anIllegalArgumentException
is thrown. Further a test case has been added toAccountancyTests
which adds the sameAccountancyEntry
twice and excepts anIllegalArgumentException
to be thrown.