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 and Type | Method and Description |
|---|---|
void |
flush() |
static void |
handleSqlLine(SutController sc,
String line) |
static void |
setTracker(boolean on,
SutController sutController) |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTowritepublic 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)
Copyright © 2016–2019. All rights reserved.