Skip to content

Commit d473165

Browse files
committed
chore[import]: 미사용 import 제거
1 parent 6665034 commit d473165

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

backend/src/test/java/com/ai/lawyer/global/email/service/EmailServiceTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import org.mockito.junit.jupiter.MockitoExtension;
1313
import org.springframework.mail.MailSendException;
1414
import org.springframework.mail.javamail.JavaMailSender;
15-
import org.springframework.mail.javamail.MimeMessageHelper;
1615
import org.springframework.test.util.ReflectionTestUtils;
1716

1817
import java.io.UnsupportedEncodingException;

backend/src/test/java/com/ai/lawyer/global/jwt/TokenProviderTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import javax.crypto.SecretKey;
2020
import java.nio.charset.StandardCharsets;
2121
import java.time.Duration;
22-
import java.util.Date;
2322
import java.util.HashSet;
2423
import 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

0 commit comments

Comments
 (0)