Skip to content

Commit fa5d678

Browse files
committed
[fix] UT error
1 parent 6124332 commit fa5d678

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: dolphinscheduler-dao/src/test/java/org/apache/dolphinscheduler/dao/mapper/CommandMapperTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import java.util.Map;
4646

4747
import org.junit.Test;
48+
import org.junit.jupiter.api.Assertions;
4849
import org.springframework.beans.factory.annotation.Autowired;
4950

5051
/**
@@ -187,10 +188,10 @@ private boolean toTestQueryCommandPageBySlot(int masterCount, int thisMasterSlot
187188
boolean hit = id % masterCount == thisMasterSlot;
188189
List<Command> commandList = commandMapper.queryCommandPageBySlot(1, 0, masterCount, thisMasterSlot);
189190
if (hit) {
190-
assertEquals(id,commandList.get(0).getId());
191+
Assertions.assertEquals(id, commandList.get(0).getId());
191192
} else {
192193
commandList.forEach(o -> {
193-
assertNotEquals(id, o.getId());
194+
Assertions.assertNotEquals(id, o.getId());
194195
assertEquals(thisMasterSlot, o.getId() % masterCount);
195196
});
196197
}

0 commit comments

Comments
 (0)