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);
}
Aggregations