Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added MainRunner. This removes the need for public methods in JUnitCore #370

Merged
merged 2 commits into from
Apr 3, 2012
Merged

Added MainRunner. This removes the need for public methods in JUnitCore #370

merged 2 commits into from
Apr 3, 2012

Conversation

matthewfarwell
Copy link
Contributor

MainRunner installs a SecurityManager which traps the System.exit(), thereby
removing the need to have runMainAndExit and runMain public in JUnitCore.
MainRunner is only used in the tests of course.

The idea of this change is to remove the public methods runMainAndExit and runMain.

MainRunner installs a SecurityManager which traps the System.exit(), thereby
removing the need to have runMainAndExit and runMain public in JUnitCore.
MainRunner is only used in the tests of course.
@dsaff
Copy link
Member

dsaff commented Feb 27, 2012

I like this, in general. Can you run some github searches, and post quickly on junit-users, to make sure there are no non-test users of these methods?

@matthewfarwell
Copy link
Contributor Author

Posted to junit group, the github search reveals two projects:

https://github.com/SteMo/Zeiterfassung_HiWis_TUD (single use)
https://github.com/gliptak/JAllele (mutliple uses, but > 2 years since last update)

dsaff added a commit that referenced this pull request Apr 3, 2012
Added MainRunner. This removes the need for public methods in JUnitCore
@dsaff dsaff merged commit d5bce27 into junit-team:master Apr 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants