Browse Source

refactor ut

pull/3/MERGE
baoliang 4 years ago
parent
commit
3f88a00174
  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

@ -152,12 +152,12 @@ public class TaskCallbackServiceTest {
nettyRemotingClient.close(); nettyRemotingClient.close();
} }
@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
public void testPause(){ public void testPause(){

Loading…
Cancel
Save