Lp-468 Misc transaction utils to service refactor #191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.




JIRA link
https://companieshouse.atlassian.net/browse/LP-468
Change description
Having deleted transaction utils, moved these methods to the transaction service:
This cause multiple test failures:
Moved transaction tests into:
src/test/java/uk/gov/companieshouse/limitedpartnershipsapi/service/TransactionServiceTest.java
from
src/test/java/uk/gov/companieshouse/limitedpartnershipsapi/service/LimitedPartnershipServiceTest.java
Test such as "givenDto_whenCreateLP_thenLPCreatedWithSubmissionIdAndTransactionUpdated" required some division into parts that were relevant to transaction and parts relevant to the partnership service.
Update service tests required changes.
Work checklist
Pull request checklist
An exhaustive list of peer review checks can be read here
Merge instructions
We are committed to keeping commit history clean, consistent and linear. To achieve this commit should be structured as follows:
and contain the following structural elements:
BREAKING CHANGE:introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type,fix:andfeat:are allowed, for examplebuild:,chore:,ci:,docs:,style:,refactor:,perf:,test:, and others,BREAKING CHANGE: <description>may be provided.