Merge pull request #9863 from JonCook/master

BAEL-4341 - JUnit test for System.out.println()
This commit is contained in:
Loredana Crusoveanu 2020-08-13 16:40:53 +03:00 committed by GitHub
commit 7c35d2a54f

View File

@ -4,6 +4,7 @@ import java.io.ByteArrayOutputStream;
import java.io.PrintStream; import java.io.PrintStream;
import org.junit.Assert; import org.junit.Assert;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -19,7 +20,7 @@ class SystemOutPrintlnUnitTest {
System.setOut(new PrintStream(outputStreamCaptor)); System.setOut(new PrintStream(outputStreamCaptor));
} }
@BeforeEach @AfterEach
public void tearDown() { public void tearDown() {
System.setOut(standardOut); System.setOut(standardOut);
} }