DATACMNS-1647 - Switched to use factory methods of RepresentationModel types.

This commit is contained in:
Oliver Drotbohm
2020-01-14 14:49:45 +01:00
parent b69141ac17
commit 1406af8f71
3 changed files with 8 additions and 8 deletions

View File

@@ -160,8 +160,8 @@ public class SpringDataJaxbUnitTests {
@Override
protected List<Link> getLinks(Page<?> source) {
return Arrays.asList(new Link(IanaLinkRelations.NEXT.value(), IanaLinkRelations.NEXT),
new Link(IanaLinkRelations.PREV.value(), IanaLinkRelations.PREV));
return Arrays.asList(Link.of(IanaLinkRelations.NEXT.value(), IanaLinkRelations.NEXT),
Link.of(IanaLinkRelations.PREV.value(), IanaLinkRelations.PREV));
}
}
}

View File

@@ -107,7 +107,7 @@ public class PagedResourcesAssemblerUnitTests {
@Test
public void usesCustomLinkProvided() {
Link link = new Link("https://foo:9090", "rel");
Link link = Link.of("https://foo:9090", "rel");
PagedModel<EntityModel<Person>> resources = assembler.toModel(createPage(1), link);