@Deprecated public class StandardOutputTracker extends ByteArrayOutputStream
(1) is a recipe for disaster: handling generated files, and file locks on Windows. (2) is a nightmare as well, as who knows what the SUT is configuring. (3) is likely the cleanest, easiest option. But it means we need to handle System.out
This class can be used for any analyses of the SUT output
buf, count| Modifier | Constructor and Description |
|---|---|
protected |
StandardOutputTracker(SutController sutController,
PrintStream printStream)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
StandardOutputTracker |
copyWithPrintStream(PrintStream printStream)
Deprecated.
|
void |
flush()
Deprecated.
|
static void |
handleSqlLine(SutController sc,
String line)
Deprecated.
|
static void |
setTracker(boolean on,
SutController sutController)
Deprecated.
|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTowriteprotected StandardOutputTracker(SutController sutController, PrintStream printStream)
public static void setTracker(boolean on,
SutController sutController)
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic static void handleSqlLine(SutController sc, String line)
public StandardOutputTracker copyWithPrintStream(PrintStream printStream)
Copyright © 2016–2021. All rights reserved.