Skip to content

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

@thiotes

Description

@thiotes

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions