DATAREST-1341 - Upgrade to Spring HATEOAS 1.0.
This commit is contained in:
committed by
Oliver Drotbohm
parent
a05d6a2a90
commit
af6f55a92c
@@ -68,7 +68,7 @@ public class PersistentEntityResourceAssemblerIntegrationTests extends AbstractC
|
||||
Links links = new Links(resource.getLinks());
|
||||
|
||||
assertThat(links).hasSize(2);
|
||||
assertThat(links.getLink("self").getVariables()).isEmpty();
|
||||
assertThat(links.getLink("user").getVariableNames()).contains("projection");
|
||||
assertThat(links.getLink("self").orElseThrow(() -> new RuntimeException("Unable to find 'self' link")).getVariables()).isEmpty();
|
||||
assertThat(links.getLink("user").orElseThrow(() -> new RuntimeException("Unable to find 'user' link")).getVariableNames()).contains("projection");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user