Skip to content

Commit 9e4ff1a

Browse files
authored
Merge pull request eugenp#8108 from alimate/BAEL-3274
BAEL-3274: Fixed the Integrations Tests in spring-data-rest-querydsl
2 parents 7e08d56 + f0a3af9 commit 9e4ff1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-data-rest-querydsl/src/test/java/com/baeldung/springdatarestquerydsl/IntegrationTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ public class IntegrationTest {
3636

3737
@Test public void givenRequestHasBeenMade_whenQueryOverNameAttribute_thenGetJohn() throws Exception {
3838
// Get John
39-
mockMvc.perform(get("/personQuery?name=John")).andExpect(status().isOk()).andExpect(content().contentType(contentType))
39+
mockMvc.perform(get("/users?name=John")).andExpect(status().isOk()).andExpect(content().contentType(contentType))
4040
.andExpect(jsonPath("$", hasSize(1))).andExpect(jsonPath("$[0].name", is("John")))
4141
.andExpect(jsonPath("$[0].address.address", is("Fake Street 1")))
42-
.andExpect(jsonPath("$[0].address.country", is("Fake Country")));
42+
.andExpect(jsonPath("$[0].address.country", is("Spain")));
4343
}
4444

4545
@Test public void givenRequestHasBeenMade_whenQueryOverNameAttribute_thenGetLisa() throws Exception {
4646
// Get Lisa
47-
mockMvc.perform(get("/personQuery?name=Lisa")).andExpect(status().isOk()).andExpect(content().contentType(contentType))
47+
mockMvc.perform(get("/users?name=Lisa")).andExpect(status().isOk()).andExpect(content().contentType(contentType))
4848
.andExpect(jsonPath("$", hasSize(1))).andExpect(jsonPath("$[0].name", is("Lisa")))
4949
.andExpect(jsonPath("$[0].address.address", is("Real Street 1")))
50-
.andExpect(jsonPath("$[0].address.country", is("Real Country")));
50+
.andExpect(jsonPath("$[0].address.country", is("Germany")));
5151
}
5252
}

0 commit comments

Comments
 (0)