Browse Source

refactor ut

pull/3/MERGE
baoliang 4 years ago
parent
commit
db3d9fc27a
  1. 6
      dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/processor/TaskCallbackServiceTest.java

6
dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/processor/TaskCallbackServiceTest.java

@ -154,9 +154,9 @@ public class TaskCallbackServiceTest {
@Test(expected = IllegalArgumentException.class) @Test(expected = IllegalArgumentException.class)
public void testSendAckWithIllegalArgumentException(){ public void testSendAckWithIllegalArgumentException(){
TaskExecuteAckCommand ackCommand = Mockito.mock(TaskExecuteAckCommand.class); // TaskExecuteAckCommand ackCommand = Mockito.mock(TaskExecuteAckCommand.class);
taskCallbackService.sendAck(1, ackCommand.convert2Command()); // taskCallbackService.sendAck(1, ackCommand.convert2Command());
Stopper.stop(); // Stopper.stop();
} }
@Test @Test

Loading…
Cancel
Save