DATACMNS-1647 - Switched to use factory methods of RepresentationModel types.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user