forked from Soomin-Lim/be-java-web-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[최주형] 14, 15일차 - 테스트 코드 작성, 리팩토링, 예외처리 (#167)
* TEST : HtmlServiceTest 추가 * TEST : ListServiceTest 추가 * FIX : ListServiceTest 수정 * TEST : SignUpServiceTest 테스트 케이스 추가 * TEST : SignUpTest assertThat 추가 및 LogInService 추가 * FIX : Reformat Code * TEST : HttpResponseUtilsTest 코드 추가 * TEST : StaticFileServiceTest 코드 추가 * REFORMAT CODE * REFACTOR : HttpResponse 쓰지않는 변수와 함수 삭제 * REFACTOR : HttpStatusLine 쓰지 않는 함수 삭제 * REFACTOR : HttpUri 쓰지 않는 함수 삭제 * REFACTOR : HttpStatus 쓰지 않는 함수 삭제 * REFORMAT CODE * DOCS : README.md 학습 내용 추가 * DOCS : README.md 프로젝트 구조 작성 * 14일차 마무리 * FIX : list.html 더미값 삭제 * FEAT : 회원가입 할 때 이미 user id 가 있을 경우 예외처리 DuplicateSignUpUserException exception 클래스 추가, SignUpService에서 try catch로 잡아서 스트링 하나 간단히 만들어서 200 OK로 리턴 * DOCS : README.md 프로젝트 구조 이상하게 나오는거 수정
- Loading branch information
Showing
34 changed files
with
410 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/main/java/http/exception/DuplicateSignUpUserException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package http.exception; | ||
|
||
public class DuplicateSignUpUserException extends RuntimeException { | ||
public DuplicateSignUpUserException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package http.exception; | ||
|
||
public class NullHttpRequestException extends RuntimeException{ | ||
public NullHttpRequestException(String message){ | ||
public class NullHttpRequestException extends RuntimeException { | ||
public NullHttpRequestException(String message) { | ||
super(message); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.