Skip to content

AbstractMethodError when used with Mockito 2.1.0 #700

@kzaikin

Description

@kzaikin

When I try to use PowerMockito (the latest available 1.6.5) alongside Mockito 2.1.0 I get an exception in every test run even if tests do not use PowerMockito.

java.lang.AbstractMethodError: org.powermock.api.mockito.internal.mockmaker.PowerMockMaker.isTypeMockable(Ljava/lang/Class;)Lorg/mockito/plugins/MockMaker$TypeMockability;

This issue has been post to Mockito's github and it is clear PowerMockito has not adopted the latest Mockito changed yet.
mockito/mockito#292

The same issue is asked at StackOverflow:
http://stackoverflow.com/questions/31685267/error-initializing-mockito-everytime-and-for-any-test-cases

Observed behavior: AbstractMethodError
Desired behavior: no error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions