spring-projects / spring-projects/spring-hateoas

[Question] Why is the HalRepresentationModel private and/or how can i work around that?

Open
#1,298 4 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.