Class StreamGobblerTest
java.lang.Object
test.de.iip_ecosphere.platform.support.StreamGobblerTest
Tests
StreamGobbler.- Author:
- Holger Eichelberger, SSE
-
Constructor Details
-
StreamGobblerTest
public StreamGobblerTest()
-
-
Method Details
-
testGobbler
Tests defaultStreamGobbler.- Throws:
IOException- if the process cannot be created
-
testConsumingGobbler
TestsStreamGobblerwith custom consumer.- Throws:
IOException- if the process cannot be created
-
createProcess
Creates a process, java runningMain.- Returns:
- the process
- Throws:
IOException- if the process cannot be created
-
waitFor
Quietly waits for the termination ofproc.- Parameters:
proc- the process to wait for
-