File tree Expand file tree Collapse file tree
src/test/java/com/retailsvc/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ void getReturns200AndJsonBodyWhenAllDependenciesUp() {
3838
3939 @ Test
4040 void getReturns200WithEmptyDependencyArrayWhenNoDeps () {
41- Response resp =
42- Handlers .healthHandler (() -> new HealthOutcome (List .of ())).handle (request (GET ));
41+ Response resp = Handlers .healthHandler (() -> new HealthOutcome (List .of ())).handle (request (GET ));
4342
4443 assertThat (resp .status ()).isEqualTo (HTTP_OK );
4544 assertThat (new String ((byte []) resp .body (), StandardCharsets .UTF_8 ))
@@ -107,6 +106,7 @@ void escapesSpecialCharsInDependencyId() {
107106
108107 assertThat (new String ((byte []) resp .body (), StandardCharsets .UTF_8 ))
109108 .isEqualTo (
110- "{\" outcome\" :\" Up\" ,\" dependencies\" :[{\" id\" :\" a\\ \" b\\ \\ c\\ nd\" ,\" status\" :\" Up\" }]}" );
109+ "{\" outcome\" :\" Up\" ,\" dependencies\" :[{\" id\" :\" a\\ \" b\\ \\ c\\ n"
110+ + "d\" ,\" status\" :\" Up\" }]}" );
111111 }
112112}
You can’t perform that action at this time.
0 commit comments