Azriel Berger
Azriel Berger

Reputation: 169

the import org.junit.Rule cannot be resolved

After upgrade some dependencies' versions - I got this error:

the import org.junit.Rule cannot be resolved

Anybody know about changes in the packaging or something else that can help me?

Upvotes: 1

Views: 3553

Answers (1)

Azriel Berger
Azriel Berger

Reputation: 169

I catch the troublemaker:

the dependency that changed is "powermock-module-junit4" that I change it to "powermock-module-junit4-legacy".

The "powermock-module-junit4-legacy" depends on Junit 4.3, instead of Junit 4.12...

I added an implicit dependency for Junit4.12 and the problem was resolved.

Now I have to check what is "powermock-module-junit4-legacy" and how to not use it...

Upvotes: 1

Related Questions