spring-projects / spring-projects/spring-hateoas
[Question] Why is the HalRepresentationModel private and/or how can i work around that?
Open
@odrotbohm is already working on this.
Since May 26, 2020.
in: mediatypes
process: waiting for feedback
question
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
I have a service that uses the new HalModelBuilder to enrich an existing RepresentationModel with an additional embedded object. However i can find no way to unit test that service, since the only thing i can return with it is an EntityModel.
I can maybe write an integrationtest by looking at the actual JSON produced by the controller, but i find this somewhat unsatisfactory.
What is the way to go in this situation?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.