Skip to content

Commit 0fc66ac

Browse files
committed
docs(webrisk-samples): updated acc to review
1 parent be7ee32 commit 0fc66ac

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

webrisk/src/test/java/webrisk/SnippetsIT.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,8 @@ public static void requireEnvVar(String envVarName) {
5656

5757
@BeforeClass
5858
public static void setUp() throws IOException {
59-
final PrintStream out = System.out;
60-
ByteArrayOutputStream stdOut = new ByteArrayOutputStream();
61-
System.setOut(new PrintStream(stdOut));
62-
6359
requireEnvVar("GOOGLE_APPLICATION_CREDENTIALS");
6460
requireEnvVar("GOOGLE_CLOUD_PROJECT");
65-
66-
stdOut.close();
67-
System.setOut(out);
68-
}
69-
70-
@AfterClass
71-
public static void cleanup() throws IOException {
72-
final PrintStream out = System.out;
73-
ByteArrayOutputStream stdOut = new ByteArrayOutputStream();
74-
System.setOut(new PrintStream(stdOut));
75-
76-
stdOut.close();
77-
System.setOut(out);
7861
}
7962

8063
@Before
@@ -86,7 +69,6 @@ public void beforeEach() {
8669
@After
8770
public void afterEach() {
8871
stdOut = null;
89-
System.setOut(null);
9072
}
9173

9274
@Test

0 commit comments

Comments
 (0)