Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
Fix 테스트 코드도 checkstyle반영하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
phantom08266 committed Jun 9, 2021
1 parent 14c6aac commit f015575
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/checkstyle/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# From gist at https://gist.github.com/chadmaughan/5889802

# run the tests with the gradle wrapper
./gradlew checkstyleMain
./gradlew clean build

# store the last exit code in a variable
RESULT=$?
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/com/dev/careers/service/CuratorServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void successLogin() {

@Test
@DisplayName("회원가입된 정보로 로그인 하지 않았을 경우 ViolationException 예외가 발생한다.")
public void passwordMismatchAtLogin(){
public void passwordMismatchAtLogin() {
Curator curator = new Curator(
"test@google.com",
"홍길동",
Expand All @@ -71,7 +71,7 @@ public void passwordMismatchAtLogin(){

@Test
@DisplayName("가입하지 않는 이메일로 인한 로그인 요청 시 ViolationException 예외 발생한다.")
public void unsubscribedLoginAttempt(){
public void unsubscribedLoginAttempt() {
Curator curator = new Curator(
"test@google.com",
"홍길동",
Expand All @@ -84,7 +84,7 @@ public void unsubscribedLoginAttempt(){
"test445@#"
);
org.junit.jupiter.api.Assertions.assertThrows(
ViolationException.class,
ViolationException.class,
() -> curatorService.getUserIdByEmailAndPassword(paramter));
}
}

0 comments on commit f015575

Please sign in to comment.