openrewrite / openrewrite/rewrite-testing-frameworks

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

Open
#522 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mockito recipe
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.