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

v2.0.0 - Java Agent-based approach #16

Merged
merged 9 commits into from
Sep 7, 2024

Conversation

tginsberg
Copy link
Owner

  • Remove terminally deprecated SecurityManager approach for preventing System.exit() calls
  • Add Java Agent-based approach. Calls to System.exit() are rewritten as classes are loaded
  • Add AssertJ-style fluid assertions for cases when test authors do not want to use annotations, or want to write assertions after a System.exit() is detected
  • Upgrade Gradle to 8.10
  • Upgrade JUnit to 5.11.0
  • Switch to Kotlin DSL from Groovy DSL in Gradle build
  • Switch to GitHub Actions for build runner

- Remove terminally deprecated `SecurityManager` approach for preventing `System.exit()` calls
 - Add Java Agent-based approach. Calls to `System.exit()` are rewritten as classes are loaded
 - Add AssertJ-style fluid assertions for cases when test authors do not want to use annotations, or want to write assertions after a `System.exit()` is detected
- Upgrade Gradle to 8.10
- Upgrade JUnit to 5.11.0
- Switch to Kotlin DSL from Groovy DSL in Gradle build
- Switch to GitHub Actions for build runner
- Do not ignore gradle-wrapper.jar any longer.
+ Move existing README to Version1.xInstructions.md
+ Cover changes to Version 2 in README
+ Add copyright where missing
+ Misc documentation changes
+ Minor changes to assertion class, and its tests
Copy link

github-actions bot commented Sep 3, 2024

Overall Project 79.49% -20.51%
Files changed 75.96%

File Coverage
SystemExitPreventedException.java 100% 🍏
SystemExitExtension.java 100% 🍏
AgentSystemExitHandlerStrategy.java 92.31% -7.69% 🍏
SystemExitAssertion.java 88.12% -11.88% 🍏
Junit5SystemExitAgent.java 59.54% -40.46%
ExitPreventerStrategy.java 0%

@tginsberg tginsberg merged commit b782d38 into master Sep 7, 2024
2 checks passed
@tginsberg tginsberg deleted the feature/agent-based-exit-prevention branch September 7, 2024 21:13
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.

1 participant