Search in sources :

Example 1 with SuppressOutput

use of org.neo4j.test.rule.SuppressOutput in project neo4j by neo4j.

the class ThreadLeakageGuardExtension method printError.

private static void printError(ExtensionContext context, String message) {
    ExtensionContext.Store store = context.getStore(SUPPRESS_OUTPUT_NAMESPACE);
    SuppressOutput suppressOutput = store.get(SuppressOutputExtension.SUPPRESS_OUTPUT, SuppressOutput.class);
    PrintStream errorStream = getErrorStream(suppressOutput);
    errorStream.println(message);
}
Also used : PrintStream(java.io.PrintStream) SuppressOutput(org.neo4j.test.rule.SuppressOutput) ExtensionContext(org.junit.jupiter.api.extension.ExtensionContext)

Aggregations

PrintStream (java.io.PrintStream)1 ExtensionContext (org.junit.jupiter.api.extension.ExtensionContext)1 SuppressOutput (org.neo4j.test.rule.SuppressOutput)1