File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
webrisk/src/test/java/webrisk Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -56,25 +56,8 @@ public static void requireEnvVar(String envVarName) {
56
56
57
57
@ BeforeClass
58
58
public static void setUp () throws IOException {
59
- final PrintStream out = System .out ;
60
- ByteArrayOutputStream stdOut = new ByteArrayOutputStream ();
61
- System .setOut (new PrintStream (stdOut ));
62
-
63
59
requireEnvVar ("GOOGLE_APPLICATION_CREDENTIALS" );
64
60
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 );
78
61
}
79
62
80
63
@ Before
@@ -86,7 +69,6 @@ public void beforeEach() {
86
69
@ After
87
70
public void afterEach () {
88
71
stdOut = null ;
89
- System .setOut (null );
90
72
}
91
73
92
74
@ Test
You can’t perform that action at this time.
0 commit comments