Created
September 10, 2018 18:16
-
-
Save wkorando/54338ecfc371b0e69e1c2f37705e03b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConsoleOutputListener implements TestExecutionListener { | |
@Override | |
public void reportingEntryPublished(TestIdentifier testIdentifier, ReportEntry entry) { | |
entry.getKeyValuePairs().values().stream().forEach(c -> System.out.println("Captured output: " + c)); | |
TestExecutionListener.super.reportingEntryPublished(testIdentifier, entry); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment