public class DefaultProcessFactory extends Object implements TestableProcessFactory
| Constructor and Description |
|---|
DefaultProcessFactory() |
| Modifier and Type | Method and Description |
|---|---|
TestableProcess |
create(String... command)
Creates a child process represented by the provided command and starts it.
|
public TestableProcess create(String... command) throws IOException
TestableProcessFactorycreate in interface TestableProcessFactorycommand - the program to launch and its argumentsTestableProcess representing a process,
whether real or simulated.IOException - if an I/O error occursCopyright © 2018. All rights reserved.