Fix inline comments in EnvironmentControllerTests
This commit is contained in:
@@ -346,7 +346,7 @@ public class EnvironmentControllerTests {
|
||||
public void placeholdersNotResolvedInJsonFromSystemPropertiesWhenNotFlaggedWithDefault() throws Exception {
|
||||
whenPlaceholdersSystemPropsWithDefault();
|
||||
String json = this.controller.jsonProperties("foo", "bar", false).getBody();
|
||||
// If there is a default value we do not prevent the placeholder being resolved
|
||||
// If there is a default value we prevent the placeholder being resolved
|
||||
assertEquals("{\"a\":{\"b\":{\"c\":\"${foo:spam}\"}}}", json);
|
||||
}
|
||||
|
||||
@@ -354,7 +354,7 @@ public class EnvironmentControllerTests {
|
||||
public void placeholdersResolvedInJsonFromSystemPropertiesWhenFlagged() throws Exception {
|
||||
whenPlaceholdersSystemPropsWithDefault();
|
||||
String json = this.controller.jsonProperties("foo", "bar", true).getBody();
|
||||
// If there is a default value we prevent the placeholder being resolved
|
||||
// If there is a default value we do not prevent the placeholder being resolved
|
||||
assertEquals("{\"a\":{\"b\":{\"c\":\"spam\"}}}", json);
|
||||
}
|
||||
|
||||
@@ -408,7 +408,6 @@ public class EnvironmentControllerTests {
|
||||
mvc.perform(MockMvcRequestBuilders.get("/foo-bar.json"))
|
||||
.andExpect(MockMvcResultMatchers.content().contentType(MediaType.APPLICATION_JSON))
|
||||
.andExpect(MockMvcResultMatchers.content().string("{}"));
|
||||
;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user