Skip to content

Commit

Permalink
fix: 테스트 케이스 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HubCreator committed Sep 14, 2023
1 parent 32ab55d commit 6e244ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private StaticResource(final byte[] content, final String fileType) {

public static StaticResource from(final String fileName) throws IOException {
if (fileName.equals("/")) {
return new StaticResource("Hello World!".getBytes(), "");
return new StaticResource("Hello world!".getBytes(), "html");
}
return new StaticResource(extractContent(fileName), extractFileExtension(fileName));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ void handleTest() throws IOException {

//when, then
assertAll(
() -> assertThat(postRequest.getRequestBody().getParamValue("account")).isEqualTo("hubk"),
() -> assertThat(postRequest.getRequestBody().getParamValue("password")).isEqualTo("hubkpassword")
() -> assertThat(postRequest.getRequestBody().get().getParamValue("account")).isEqualTo("hubk"),
() -> assertThat(postRequest.getRequestBody().get().getParamValue("password")).isEqualTo("hubkpassword")
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ void requestTest() throws Exception {
"Content-Length: " + content.getBytes().length + " ",
"",
content);
assertThat(expected).isEqualTo(response.toString());
assertThat(response.toString()).isEqualTo(expected);
}
}

0 comments on commit 6e244ea

Please sign in to comment.