Fix inline comments in EnvironmentControllerTests

This commit is contained in:
Johnny Lim
2016-10-04 13:31:11 +09:00
committed by GitHub
parent f596d138aa
commit 9a3903d088

View File

@@ -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