openrewrite / openrewrite/rewrite-testing-frameworks
Convert JMockit `@Tested` and `Deencapsulation` when migrating to Mockito
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 100
- Forks
- 105
- Avg merge
- 2h 25m
- Merged PRs (30d)
- 9
Description
What problem are you trying to solve?
We want to achieve a complete migration coming from JMockit going to Mockito.
It seems we don't yet cover either the @Tested annotation, nor the Deencapsulation class.
There's been some related tests added in this PR for anyone looking to take this on
Have you considered any alternatives or workarounds?
As a first step we could identify such cases and suggest to migrate these manually.
Any additional context
This was a reported via email.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the related tests in pull request #557 and the existing migration coverage for JMockit. Determine how @Tested and Deencapsulation should be handled when migrating to Mockito, then verify that the resulting recipe coverage either performs the migration or clearly identifies cases for manual migration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100