Browse Source

Update ShellCommandExecutorTest.java

update unit test
pull/3/MERGE
小清 4 years ago committed by GitHub
parent
commit
3cba3e803c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java

6
dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java

@ -184,8 +184,7 @@ public class ShellCommandExecutorTest {
method.setAccessible(true); method.setAccessible(true);
Object[] arg1s = {"11111"}; Object[] arg1s = {"11111"};
ShellCommandExecutor result = (ShellCommandExecutor) method.invoke(instance, arg1s); ShellCommandExecutor result = (ShellCommandExecutor) method.invoke(instance, arg1s);
} } catch (Exception e) {
catch (Exception e){
logger.error(e.getMessage()); logger.error(e.getMessage());
} }
} }
@ -200,8 +199,7 @@ public class ShellCommandExecutorTest {
method.setAccessible(true); method.setAccessible(true);
Object[] arg1s = {"/opt/1.txt"}; Object[] arg1s = {"/opt/1.txt"};
AbstractCommandExecutor result = (AbstractCommandExecutor) method.invoke(instance, arg1s); AbstractCommandExecutor result = (AbstractCommandExecutor) method.invoke(instance, arg1s);
} } catch (Exception e) {
catch (Exception e){
logger.error(e.getMessage()); logger.error(e.getMessage());
} }
} }

Loading…
Cancel
Save