Class StandardOutputTracker
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ByteArrayOutputStream
-
- org.evomaster.client.java.controller.internal.db.StandardOutputTracker
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class StandardOutputTracker extends ByteArrayOutputStream
We use p6spy to intercept SQL commands. That can be done in 3 ways: (1) to file, (2) with a logger, (3) to standard output.(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
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayOutputStream
buf, count
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()static voidhandleSqlLine(SutController sc, String line)static voidsetTracker(boolean on, SutController sutController)-
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Method Detail
-
setTracker
public static void setTracker(boolean on, SutController sutController)
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
handleSqlLine
public static void handleSqlLine(SutController sc, String line)
-
-