diff --git a/dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java b/dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java index 2d339e0b69..5c4edeade0 100644 --- a/dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java +++ b/dolphinscheduler-server/src/test/java/org/apache/dolphinscheduler/server/worker/shell/ShellCommandExecutorTest.java @@ -121,7 +121,7 @@ public class ShellCommandExecutorTest { @Test public void testParseProcessOutput() { - Class shellCommandExecutorClass = ShellCommandExecutor.class; + Class shellCommandExecutorClass = AbstractCommandExecutor.class; try { Object instance = shellCommandExecutorClass.newInstance(); @@ -168,7 +168,7 @@ public class ShellCommandExecutorTest { logger.info("unit test"); } } }; - ShellCommandExecutor result = (ShellCommandExecutor) method.invoke(instance, arg1s); + AbstractCommandExecutor result = (AbstractCommandExecutor) method.invoke(instance, arg1s); } catch (Exception e) { logger.error(e.getMessage()); } @@ -176,14 +176,14 @@ public class ShellCommandExecutorTest { @Test public void testFindAppId() { - Class shellCommandExecutorClass = ShellCommandExecutor.class; + Class shellCommandExecutorClass = AbstractCommandExecutor.class; try { Object instance = shellCommandExecutorClass.newInstance(); Method method = shellCommandExecutorClass.getDeclaredMethod("findAppId", new Class[]{String.class}); method.setAccessible(true); Object[] arg1s = {"11111"}; - ShellCommandExecutor result = (ShellCommandExecutor) method.invoke(instance, arg1s); + AbstractCommandExecutor result = (AbstractCommandExecutor) method.invoke(instance, arg1s); } catch (Exception e) { logger.error(e.getMessage()); }