public class SnapshotPrinter extends Object
| Constructor and Description |
|---|
SnapshotPrinter() |
| Modifier and Type | Method and Description |
|---|---|
static void |
jsonPrint(Snapshot snapshot,
OutputStream out)
Print JSON output to
out stream. |
static void |
main(String[] args) |
static void |
textPrint(Snapshot snapshot,
Logger logger,
int logLevel)
Write to log file
|
static void |
textPrint(Snapshot snapshot,
OutputStream out)
Write to output stream
|
public static void main(String[] args) throws IOException, JSONException
IOExceptionJSONExceptionpublic static void jsonPrint(Snapshot snapshot, OutputStream out) throws JSONException
out stream.
{
"project" : {
"files" : [
{
"path" : "/full/path/to/source/file",
"tests" : [
"fullTestName1" : "status",
"fullTestName2" : "status",
... more test objects ...
]
},
... more "file" objects ...
]
}
}
JSONExceptionpublic static void textPrint(Snapshot snapshot, OutputStream out)
Copyright © 2024 OpenClover.org. All rights reserved.