Skip to content

Mockito test failure only on GitHub Actions #3

Closed

Description

@jfallows
Error:  Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.9 s <<< FAILURE! - in io.aklivity.zilla.runtime.cog.http.internal.util.function.ObjectIntBiConsumerTest
Error:  io.aklivity.zilla.runtime.cog.http.internal.util.function.ObjectIntBiConsumerTest.shouldInvokeBeforeAndThenAfter  Time elapsed: 0.886 s  <<< ERROR!
org.mockito.exceptions.base.MockitoException: 

Cannot call abstract real method on java object!
Calling real methods is only possible when mocking non abstract method.
  //correct example:
  when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod();
	at io.aklivity.zilla.runtime.cog.http.internal.util.function.ObjectIntBiConsumerTest.shouldInvokeBeforeAndThenAfter(ObjectIntBiConsumerTest.java:52)

Error:  io.aklivity.zilla.runtime.cog.http.internal.util.function.ObjectIntBiConsumerTest.shouldInvokePrimitiveAccept  Time elapsed: 0.001 s  <<< ERROR!
org.mockito.exceptions.base.MockitoException: 

Cannot call abstract real method on java object!
Calling real methods is only possible when mocking non abstract method.
  //correct example:
  when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod();
	at io.aklivity.zilla.runtime.cog.http.internal.util.function.ObjectIntBiConsumerTest.shouldInvokePrimitiveAccept(ObjectIntBiConsumerTest.java:37)

Activity

  1. added
    bug
    on Dec 27, 2021
  2. added a commit that references this issue on Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions