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

Add recipe to migrate JUnit 4's ExpectedException #573

Closed

Conversation

FieteO
Copy link
Contributor

@FieteO FieteO commented Aug 14, 2024

What's changed?

Add a ExpectedExceptionToAssertThrows recipe that migrates JUnit4's ExpectedException class.

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

@FieteO FieteO changed the title add basic recipe and test classes Add recipe to migrate JUnit 4's ExpectedException Aug 14, 2024
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@timtebeek
Copy link
Contributor

Thanks for the steps to replicate here! I've since moved the issue as there's a matching recipe in rewrite-testing-frameworks. Let's continue there in openrewrite/rewrite-testing-frameworks#581 (comment)

@timtebeek timtebeek closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

org.junit.rules.ExpectedException not migrated as part of SpringBoot2JUnit4to5Migration
2 participants