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

Stack Overflow | Ankur Mehrotra | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Stack Overflow | 9 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

    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