We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7de05c commit a42ae13Copy full SHA for a42ae13
1 file changed
docs/core/metrics.md
@@ -589,16 +589,17 @@ class MetricsTestExample {
589
Context lambdaContext;
590
591
private final PrintStream standardOut = System.out;
592
- private final ByteArrayOutputStream outputStreamCaptor = new ByteArrayOutputStream();
+ private ByteArrayOutputStream outputStreamCaptor;
593
private final ObjectMapper objectMapper = new ObjectMapper();
594
595
@BeforeEach
596
void setUp() {
597
+ outputStreamCaptor = new ByteArrayOutputStream();
598
System.setOut(new PrintStream(outputStreamCaptor));
599
}
600
601
@AfterEach
- void tearDown() {
602
+ void tearDown() throws Exception {
603
System.setOut(standardOut);
604
605
0 commit comments