Skip to content

Commit de4b859

Browse files
committed
refactor: 소나 이슈 해결
- 사용하지 않는 import - 테스트 코드 개선
1 parent 95211f2 commit de4b859

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/main/java/com/somemore/global/config/SecurityConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.somemore.global.config;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.somemore.global.auth.cookie.CookieUseCase;
54
import com.somemore.global.auth.idpw.filter.IdPwAuthFilter;
65
import com.somemore.global.auth.jwt.filter.JwtAuthFilter;
76
import com.somemore.global.auth.jwt.filter.JwtExceptionFilter;
@@ -12,8 +11,8 @@
1211
import lombok.RequiredArgsConstructor;
1312
import org.springframework.context.annotation.Bean;
1413
import org.springframework.context.annotation.Configuration;
15-
import org.springframework.security.config.Customizer;
1614
import org.springframework.security.authentication.AuthenticationManager;
15+
import org.springframework.security.config.Customizer;
1716
import org.springframework.security.config.annotation.authentication.configuration.AuthenticationConfiguration;
1817
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
1918
import org.springframework.security.config.annotation.web.builders.HttpSecurity;

src/test/java/com/somemore/user/repository/user/UserRepositoryImplTest.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ void saveOAuthVolunteerUser() {
3232
User savedUser = userRepository.save(user);
3333

3434
// then
35-
assertThat(savedUser).isNotNull();
36-
assertThat(savedUser).isEqualTo(user);
35+
assertThat(savedUser)
36+
.isNotNull()
37+
.isEqualTo(user);
3738
}
3839

3940
@DisplayName("OAuth 유저(기관)를 저장할 수 있다.")
@@ -47,8 +48,9 @@ void saveOAuthCenterUser() {
4748
User savedUser = userRepository.save(user);
4849

4950
// then
50-
assertThat(savedUser).isNotNull();
51-
assertThat(savedUser).isEqualTo(user);
51+
assertThat(savedUser)
52+
.isNotNull()
53+
.isEqualTo(user);
5254
}
5355

5456
@DisplayName("Local 유저(기관)를 저장할 수 있다.")
@@ -62,8 +64,9 @@ void saveLocalCenterUser() {
6264
User savedUser = userRepository.save(user);
6365

6466
// then
65-
assertThat(savedUser).isNotNull();
66-
assertThat(savedUser).isEqualTo(user);
67+
assertThat(savedUser)
68+
.isNotNull()
69+
.isEqualTo(user);
6770
}
6871

6972
@DisplayName("유저아이디로 유저를 조회할 수 있다.")

0 commit comments

Comments
 (0)