|
|
@ -99,6 +99,8 @@ public class ShellTaskTest { |
|
|
|
public void testComplementData() throws Exception { |
|
|
|
public void testComplementData() throws Exception { |
|
|
|
shellTask = new ShellTask(taskExecutionContext, logger); |
|
|
|
shellTask = new ShellTask(taskExecutionContext, logger); |
|
|
|
shellTask.init(); |
|
|
|
shellTask.init(); |
|
|
|
|
|
|
|
shellCommandExecutor.isSuccessOfYarnState(new ArrayList<>()); |
|
|
|
|
|
|
|
shellCommandExecutor.isSuccessOfYarnState(null); |
|
|
|
PowerMockito.when(shellCommandExecutor.run(anyString())).thenReturn(commandExecuteResult); |
|
|
|
PowerMockito.when(shellCommandExecutor.run(anyString())).thenReturn(commandExecuteResult); |
|
|
|
shellTask.handle(); |
|
|
|
shellTask.handle(); |
|
|
|
} |
|
|
|
} |
|
|
|