File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
backend/src/test/java/com/ai/lawyer/global Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 1212import org .mockito .junit .jupiter .MockitoExtension ;
1313import org .springframework .mail .MailSendException ;
1414import org .springframework .mail .javamail .JavaMailSender ;
15- import org .springframework .mail .javamail .MimeMessageHelper ;
1615import org .springframework .test .util .ReflectionTestUtils ;
1716
1817import java .io .UnsupportedEncodingException ;
Original file line number Diff line number Diff line change 1919import javax .crypto .SecretKey ;
2020import java .nio .charset .StandardCharsets ;
2121import java .time .Duration ;
22- import java .util .Date ;
2322import java .util .HashSet ;
2423import java .util .Set ;
2524
@@ -50,7 +49,6 @@ class TokenProviderTest {
5049
5150 private Member member ;
5251 private String secretKey ;
53- private long accessTokenExpirationSeconds ;
5452
5553 private static final String TOKEN_PREFIX = "tokens:" ;
5654 private static final String ACCESS_TOKEN_FIELD = "accessToken" ;
@@ -76,11 +74,11 @@ void setUp() {
7674
7775 // JWT 설정 (최소 256비트 = 32바이트 이상의 키 필요)
7876 secretKey = "testSecretKeyForJWTTokenGenerationAndValidation1234567890" ;
79- accessTokenExpirationSeconds = 3600L ; // 1시간
8077
8178 // Mock 설정 - lenient() 사용하여 모든 테스트에서 사용되지 않아도 경고하지 않음
8279 lenient ().when (jwtProperties .getSecretKey ()).thenReturn (secretKey );
8380 lenient ().when (jwtProperties .getAccessToken ()).thenReturn (accessTokenProperties );
81+ long accessTokenExpirationSeconds = 3600L ;
8482 lenient ().when (accessTokenProperties .getExpirationSeconds ()).thenReturn (accessTokenExpirationSeconds );
8583 lenient ().when (redisTemplate .opsForHash ()).thenReturn (hashOperations );
8684
You can’t perform that action at this time.
0 commit comments