diff --git a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/DuplicateLinkListingTests.java b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/DuplicateLinkListingTests.java index 8b81a48df..82bca4729 100644 --- a/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/DuplicateLinkListingTests.java +++ b/spring-data-rest-webmvc/src/test/java/org/springframework/data/rest/webmvc/DuplicateLinkListingTests.java @@ -93,7 +93,8 @@ public class DuplicateLinkListingTests { @Test public void testBasics() throws Exception { - ResultActions frodoActions = testMvcClient.follow("/people/1"); + Person person = personRepository.findAll().iterator().next(); + ResultActions frodoActions = testMvcClient.follow("/people/" + person.getId()); frodoActions.andExpect(jsonPath("$.links").value(hasSize(4))); }