Skip to content

Commit f79c272

Browse files
committed
♻️ refactor: 테스트 Order 제거
1 parent a30ff90 commit f79c272

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

backend/src/test/java/io/f1/backend/global/lock/DistributedLockAspectTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.junit.jupiter.api.BeforeEach;
1919
import org.junit.jupiter.api.DisplayName;
2020
import org.junit.jupiter.api.MethodOrderer;
21-
import org.junit.jupiter.api.Order;
2221
import org.junit.jupiter.api.Test;
2322
import org.junit.jupiter.api.TestMethodOrder;
2423
import org.junit.jupiter.api.extension.ExtendWith;
@@ -69,7 +68,6 @@ void setUp() {
6968
when(joinPoint.getArgs()).thenReturn(new Object[] {TEST_ROOM_ID});
7069
}
7170

72-
@Order(1)
7371
@DisplayName("락 획득 성공 시 정상적으로 메서드가 실행되고, 락 해제가 호출되는지 확인")
7472
@Test
7573
void testLock_Success() throws Throwable {
@@ -103,7 +101,6 @@ void testLock_Success() throws Throwable {
103101
}
104102
}
105103

106-
@Order(2)
107104
@DisplayName("락 획득 실패 시 CustomException(LOCK_ACQUISITION_FAILED)이 발생하는지 확인")
108105
@Test
109106
void testLock_FailToAcquireLock() throws Throwable {
@@ -138,7 +135,6 @@ void testLock_FailToAcquireLock() throws Throwable {
138135
}
139136
}
140137

141-
@Order(3)
142138
@DisplayName("락 대기 중 인터럽트 발생 시 InterruptedException이 전파되는지 확인")
143139
@Test
144140
void testLock_InterruptedException() throws Throwable {
@@ -173,7 +169,6 @@ void testLock_InterruptedException() throws Throwable {
173169
}
174170
}
175171

176-
@Order(4)
177172
@DisplayName("락을 획득하지 않은 스레드가 unlock하지 않는지 확인")
178173
@Test
179174
void testLock_NotHeldByCurrentThread() throws Throwable {
@@ -208,7 +203,6 @@ void testLock_NotHeldByCurrentThread() throws Throwable {
208203
}
209204
}
210205

211-
@Order(5)
212206
@DisplayName("메서드 실행 중 예외 발생 시에도 락이 정상적으로 해제되는지 확인")
213207
@Test
214208
void testLock_ExceptionDuringExecution() throws Throwable {
@@ -246,7 +240,6 @@ void testLock_ExceptionDuringExecution() throws Throwable {
246240
}
247241
}
248242

249-
@Order(6)
250243
@DisplayName("SpEL 파싱을 통한 동적 키 생성이 정상적으로 작동하는지 확인")
251244
@Test
252245
void testGetLockKey_WithSpELExpression() throws Throwable {

0 commit comments

Comments
 (0)