mockit.internal.UnexpectedInvocation: unexpected invocation to: com.brown.bardie.services.DrmPermissionsService#createPermission(String, String, String) with arguments: "docId1", "1", "drmSsID1" on mock instance: com.brown.bardie.services.$Impl_DrmPermissionsService@49070868

  1. 0

    Junit - mockit.internal.UnexpectedInvocation: unexpected invocation to:

    Stack Overflow | 5 months ago | Ankur Mehrotra
    mockit.internal.UnexpectedInvocation: unexpected invocation to: com.brown.bardie.services.DrmPermissionsService#createPermission(String, String, String) with arguments: "docId1", "1", "drmSsID1" on mock instance: com.brown.bardie.services.$Impl_DrmPermissionsService@49070868
  2. 0

    'Unexpected invocation’ while mocking self returning class via @Mocked and StrictExpectations

    GitHub | 11 months ago | yeskov
    mockit.internal.UnexpectedInvocation: Unexpected invocation of: SelfReturningClass#doSmthAndReturnSelf(int) with arguments: 2 on instance: SelfReturningClass@7c30a502 when was expecting an invocation of: SelfReturningClass#doSmthAndReturnSelf(int) with arguments: 2 on mock instance: SelfReturningClass@1d251891
  3. 0

    Getter breaks enum value within impicit verification of expectations

    Google Groups | 2 years ago | Unknown author
    mockit.internal.UnexpectedInvocation: Parameter 0 of demonstrate.SomeTest$Consumer#consume(demonstrate.SomeTest$X) expected "i=1, e=A", got "i=1, e=A" Warning: argument class demonstrate.SomeTest$X has no "equals" method
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getter breaks enum value within impicit verification of expectations

    Google Groups | 2 years ago | Unknown author
    mockit.internal.UnexpectedInvocation: Parameter 0 of demonstrate.SomeTest$Consumer#consume(demonstrate.SomeTest$X) expected "i=1, e=A", got "i=1, e=A" Warning: argument class demonstrate.SomeTest$X has no "equals" method
  6. 0

    Getter breaks enum value within impicit verification of expectations

    Google Groups | 2 years ago | Unknown author
    mockit.internal.UnexpectedInvocation: Parameter 0 of demonstrate.SomeTest$Consumer#consume(demonstrate.SomeTest$X) expected "i=1, e=A", got "i=1, e=A" Warning: argument class demonstrate.SomeTest$X has no "equals" method

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. mockit.internal.UnexpectedInvocation

      unexpected invocation to: com.brown.bardie.services.DrmPermissionsService#createPermission(String, String, String) with arguments: "docId1", "1", "drmSsID1" on mock instance: com.brown.bardie.services.$Impl_DrmPermissionsService@49070868

      at com.brown.bardie.services.impl.DrmPermissionCreationServiceImpl.createIndividualPermission()
    2. com.brown.bardie
      DrmPermissionCreationServiceImplTest.createSelfAndDerivedPermissionForClientTest
      1. com.brown.bardie.services.impl.DrmPermissionCreationServiceImpl.createIndividualPermission(DrmPermissionCreationServiceImpl.java:167)
      2. com.brown.bardie.services.impl.DrmPermissionCreationServiceImpl.createTeamPermission(DrmPermissionCreationServiceImpl.java:194)
      3. com.brown.bardie.services.impl.DrmPermissionCreationServiceImpl.createDerivedPermissions(DrmPermissionCreationServiceImpl.java:224)
      4. com.brown.bardie.services.impl.DrmPermissionCreationServiceImpl.createSelfAndDerivedPermission(DrmPermissionCreationServiceImpl.java:86)
      5. com.brown.bardie.services.DrmPermissionCreationServiceImplTest.createSelfAndDerivedPermissionForClientTest(DrmPermissionCreationServiceImplTest.java:174)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:497)
      2 frames
    4. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      1 frame
    5. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      5 frames