-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove usage of deprecated-for-removal SecurityManager
- Loading branch information
1 parent
7d2a5df
commit 6ba9c4d
Showing
5 changed files
with
33 additions
and
80 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.junit.runner; | ||
|
||
import java.io.OutputStream; | ||
import java.io.PrintStream; | ||
|
||
public class MainRunner { | ||
|
||
public static int runMain(String... args) { | ||
PrintStream oldOut = System.out; | ||
System.setOut(new PrintStream(new NullOutputStream())); | ||
try { | ||
return JUnitCore.runMain(args); | ||
} finally { | ||
System.setOut(oldOut); | ||
} | ||
} | ||
|
||
static class NullOutputStream extends OutputStream { | ||
public void write(int b) { | ||
// do nothing | ||
} | ||
} | ||
} |
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
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
67 changes: 0 additions & 67 deletions
67
src/test/java/org/junit/tests/running/core/MainRunner.java
This file was deleted.
Oops, something went wrong.