This is an automated email from the ASF dual-hosted git repository.

abhishekrb19 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 1bbb062442e test: migrate ExecutorLifecycleTest to JUnit 5 (#20223)
1bbb062442e is described below

commit 1bbb062442e96e3eb9c8b25f33799cbc7b67ce0a
Author: Frank Chen <[email protected]>
AuthorDate: Wed Sep 2 05:01:34 2026 +0800

    test: migrate ExecutorLifecycleTest to JUnit 5 (#20223)
---
 .../druid/indexing/worker/executor/ExecutorLifecycleTest.java  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/indexing-service/src/test/java/org/apache/druid/indexing/worker/executor/ExecutorLifecycleTest.java
 
b/indexing-service/src/test/java/org/apache/druid/indexing/worker/executor/ExecutorLifecycleTest.java
index 1419186c1c5..14377743a4a 100644
--- 
a/indexing-service/src/test/java/org/apache/druid/indexing/worker/executor/ExecutorLifecycleTest.java
+++ 
b/indexing-service/src/test/java/org/apache/druid/indexing/worker/executor/ExecutorLifecycleTest.java
@@ -25,8 +25,8 @@ import org.apache.druid.indexing.overlord.TaskRunner;
 import org.apache.druid.jackson.DefaultObjectMapper;
 import org.apache.druid.java.util.common.ISE;
 import org.joda.time.Period;
-import org.junit.Assert;
-import org.junit.Test;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.mockito.Mockito;
 
 import java.io.File;
@@ -43,7 +43,7 @@ public class ExecutorLifecycleTest
     final FileLock lock = Mockito.mock(FileLock.class);
     Mockito.when(channel.tryLock()).thenReturn(null, lock);
 
-    Assert.assertSame(lock, lifecycle.acquireTaskFileLock(channel, new 
File("task.lock")));
+    Assertions.assertSame(lock, lifecycle.acquireTaskFileLock(channel, new 
File("task.lock")));
     Mockito.verify(channel, Mockito.times(2)).tryLock();
 
     lifecycle.stop();
@@ -57,12 +57,12 @@ public class ExecutorLifecycleTest
     final FileChannel channel = Mockito.mock(FileChannel.class);
     final File lockFile = new File("task.lock");
 
-    final ISE exception = Assert.assertThrows(
+    final ISE exception = Assertions.assertThrows(
         ISE.class,
         () -> lifecycle.acquireTaskFileLock(channel, lockFile)
     );
 
-    Assert.assertEquals("Could not acquire lock file[task.lock] within 0ms.", 
exception.getMessage());
+    Assertions.assertEquals("Could not acquire lock file[task.lock] within 
0ms.", exception.getMessage());
     Mockito.verifyNoInteractions(channel);
     lifecycle.stop();
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to