|
|
|
@ -110,7 +110,7 @@ public class HalBrowserMvcEndpointVanillaIntegrationTests {
|
|
|
|
|
if ("/actuator".equals(path)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
path = path.startsWith("/") ? path.substring(1) : path;
|
|
|
|
|
path = (path.startsWith("/") ? path.substring(1) : path);
|
|
|
|
|
this.mockMvc.perform(get("/actuator").accept(MediaType.APPLICATION_JSON))
|
|
|
|
|
.andExpect(status().isOk())
|
|
|
|
|
.andExpect(jsonPath("$._links.%s.href", path).exists());
|
|
|
|
@ -126,7 +126,7 @@ public class HalBrowserMvcEndpointVanillaIntegrationTests {
|
|
|
|
|
if (collections.contains(path)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
path = path.length() > 0 ? path : "/";
|
|
|
|
|
path = (path.length() > 0 ? path : "/");
|
|
|
|
|
this.mockMvc.perform(get(path).accept(MediaType.APPLICATION_JSON))
|
|
|
|
|
.andExpect(status().isOk()).andExpect(jsonPath("$._links.self.href")
|
|
|
|
|
.value("http://localhost" + endpoint.getPath()));
|
|
|
|
|