openrewrite / rewrite-testing-frameworks

OpenRewrite recipes that perform common Java testing migration tasks.
Apache License 2.0
68 stars 57 forks source link

Convert JMockit `@Tested` and `Deencapsulation` when migrating to Mockito #522

Open timtebeek opened 2 weeks ago

timtebeek commented 2 weeks ago

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.

Describe the situation before applying the recipe

TODO gather clear before and after examples

Describe the situation after applying the recipe

TODO gather clear before and after examples

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.