Hello,

I took the latest codebase, and am trying to run unit tests.
However, I get below error:


*Could not initialize plugin: interface org.mockito.plugins.MockMaker
(alternate: null)*

Similar to this thread :
https://stackoverflow.com/questions/41956692/could-not-initialize-plugin-interface-org-mockito-plugins-mockmake


I tried to give explicit dependencies needed by mockito core for the
version 3.11.2, however the error is still the same.
  <byte.buddy.version>1.11.3</byte.buddy.version>
        <objenesis.version>3.2</objenesis.version>

           <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>${byte.buddy.version}</version>
                <scope>test</scope>
            </dependency>
           <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${byte.buddy.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.objenesis</groupId>
                <artifactId>objenesis</artifactId>
                <version>${objenesis.version}</version>
                <scope>test</scope>
            </dependency>

When I change to the latest mockito version (4.7.0) it works fine.

Is anyone else also facing the same issue?
My java version is
java --version
java 18.0.2.1 2022-08-18

Appreciate any help.

Thanks,
akshara

Reply via email to