Browse Source

Update ShellCommandExecutorTest.java

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

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

@ -133,6 +133,7 @@ public class ShellCommandExecutorTest {
} }
}; };
} }
@Override @Override
public InputStream getInputStream() { public InputStream getInputStream() {
return new InputStream() { return new InputStream() {
@ -142,18 +143,22 @@ public class ShellCommandExecutorTest {
} }
}; };
} }
@Override @Override
public InputStream getErrorStream() { public InputStream getErrorStream() {
return null; return null;
} }
@Override @Override
public int waitFor() throws InterruptedException { public int waitFor() throws InterruptedException {
return 0; return 0;
} }
@Override @Override
public int exitValue() { public int exitValue() {
return 0; return 0;
} }
@Override @Override
public void destroy() { public void destroy() {
logger.info("unit test"); logger.info("unit test");

Loading…
Cancel
Save