public class TestProcessBuilder extends Object
ProcessBuilder
and pre-configuring it with common options.Modifier and Type | Class and Description |
---|---|
static class |
TestProcessBuilder.TestProcess
Process with it's processOutput . |
Constructor and Description |
---|
TestProcessBuilder(String mainClass) |
Modifier and Type | Method and Description |
---|---|
TestProcessBuilder |
addConfigAsMainClassArgs(Configuration config) |
TestProcessBuilder |
addJvmArg(String arg) |
TestProcessBuilder |
addMainClassArg(String arg) |
TestProcessBuilder |
setJvmMemory(MemorySize jvmMemory) |
TestProcessBuilder.TestProcess |
start() |
public TestProcessBuilder(String mainClass) throws IOException
IOException
public TestProcessBuilder.TestProcess start() throws IOException
IOException
public TestProcessBuilder setJvmMemory(MemorySize jvmMemory)
public TestProcessBuilder addJvmArg(String arg)
public TestProcessBuilder addMainClassArg(String arg)
public TestProcessBuilder addConfigAsMainClassArgs(Configuration config)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.