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

ClassNotFoundException: org.mockito.exceptions.Reporter #734

Closed
SebastianDietrich opened this issue Dec 20, 2016 · 5 comments
Closed

ClassNotFoundException: org.mockito.exceptions.Reporter #734

SebastianDietrich opened this issue Dec 20, 2016 · 5 comments

Comments

@SebastianDietrich
Copy link

powermock-api-mockito2 latest (1.6.6) refers to mockito-core 2.0.42-beta
Currently there is a mockito-core 2.3.7

Most people using mockito2 with powermock will not use an outdated beta version of mockito2. Using maven they will have a different version of mockito-core in their classpath. The API of mockito2 has changed since 2.0.42-beta - the class Reporter is no longer found in org.mockito.exceptions but in org.mockito.internal.exceptions.

--> please upgrade the dependency to the latest mockito-core 2 version

@thekingn0thing
Copy link
Member

I understand that most people want to use PowerMock with latest version of Mockito. But moving to Mockito 2 it's not just a change in dependency version and small changes in code. But it requires rewriting integration with Mockito, because PowerMock is heavily relying on the internal workings of Mockito (#726).

You are welcome to help us with identify all places where internal Mockito API should be replaced with public API.

@thekingn0thing
Copy link
Member

Duplicates #684

@SebastianDietrich
Copy link
Author

SebastianDietrich commented Dec 27, 2016

Sorry - I don't understand your answer - I am not talking about powermock, but of powermock-api-mockito2 which already works with mockito 2

So this bug is definitively no duplicate of #684

P.S. in my case (100+ tests that use powermock and mockito) it works fine with powermock-api-mockito2 and mockito-core 2.0.42-beta - I just wish that you would reference a final version instead of that beta version...

@thekingn0thing
Copy link
Member

thekingn0thing commented Dec 27, 2016 via email

@SebastianDietrich
Copy link
Author

Ok - thanks for clarifying. We will then stick to the current solution and wait for #726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants