org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: alertManager.sendQuotaAlert( org.apache.cloudstack.quota.QuotaAlertManagerImpl$DeferredQuotaEmail@42ed8181 ); -> at org.apache.cloudstack.quota.QuotaStatementTest.testSendStatement(QuotaStatementTest.java:251) Actually, there were zero interactions with this mock.

cloudstack-dev | jenkins@cloudstack.org | 11 months ago
  1. 0

    Build failed in Jenkins: build-master-slowbuild #2892

    cloudstack-dev | 11 months ago | jenkins@cloudstack.org
    org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: alertManager.sendQuotaAlert( org.apache.cloudstack.quota.QuotaAlertManagerImpl$DeferredQuotaEmail@42ed8181 ); -> at org.apache.cloudstack.quota.QuotaStatementTest.testSendStatement(QuotaStatementTest.java:251) Actually, there were zero interactions with this mock.
  2. 0

    While running build on my branch feature/metrics-guage-support i noticed the testInvalidAuthenticationTest fail. The changes were not related. I ran this test locally and that seemed to pass, and rerunning the branch, the test passed as well. Pasting the error log for reference, build 03-Nov-2014 19:30:39 Running co.cask.cdap.security.server.ExternalAuthenticationServerSSLTest build 03-Nov-2014 19:30:59 Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 19.763 sec <<< FAILURE! build 03-Nov-2014 19:30:59 testInvalidAuthentication(co.cask.cdap.security.server.ExternalAuthenticationServerSSLTest) Time elapsed: 4.45 sec <<< FAILURE! build 03-Nov-2014 19:30:59 org.mockito.exceptions.verification.WantedButNotInvoked: build 03-Nov-2014 19:30:59 Wanted but not invoked: build 03-Nov-2014 19:30:59 logger.trace(contains("401")); build 03-Nov-2014 19:30:59 -> at co.cask.cdap.security.server.ExternalAuthenticationServerTestBase.testInvalidAuthentication(ExternalAuthenticationServerTestBase.java:275) build 03-Nov-2014 19:30:59 Actually, there were zero interactions with this mock. build 03-Nov-2014 19:30:59 build 03-Nov-2014 19:30:59 at co.cask.cdap.security.server.ExternalAuthenticationServerTestBase.testInvalidAuthentication(ExternalAuthenticationServerTestBase.java:275) build 03-Nov-2014 19:30:59 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 03-Nov-2014 19:30:59 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) build 03-Nov-2014 19:30:59 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) build 03-Nov-2014 19:30:59 at java.lang.reflect.Method.invoke(Method.java:597) build 03-Nov-2014 19:30:59 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) build 03-Nov-2014 19:30:59 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) build 03-Nov-2014 19:30:59 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) build 03-Nov-2014 19:30:59 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) build 03-Nov-2014 19:30:59 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) build 03-Nov-2014 19:30:59 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) build 03-Nov-2014 19:30:59 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) build 03-Nov-2014 19:30:59 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.run(ParentRunner.java:309) build 03-Nov-2014 19:30:59 at org.junit.runners.Suite.runChild(Suite.java:127) build 03-Nov-2014 19:30:59 at org.junit.runners.Suite.runChild(Suite.java:26) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) build 03-Nov-2014 19:30:59 at org.junit.runners.ParentRunner.run(ParentRunner.java:309) build 03-Nov-2014 19:30:59 at org.junit.runner.JUnitCore.run(JUnitCore.java:160) build 03-Nov-2014 19:30:59 at org.junit.runner.JUnitCore.run(JUnitCore.java:138) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createReqestAndRun(JUnitCoreWrapper.java:139) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:111) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:84) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:138) build 03-Nov-2014 19:30:59 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) build 03-Nov-2014 19:30:59 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) build 03-Nov-2014 19:30:59 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) build 03-Nov-2014 19:30:59 at java.lang.reflect.Method.invoke(Method.java:597) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) build 03-Nov-2014 19:30:59 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)

    Cask Community Issue Tracker | 2 years ago | Shankar Selvam
    org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: logger.trace(contains("401")); -> at co.cask.cdap.security.server.ExternalAuthenticationServerTestBase.testInvalidAuthentication(ExternalAuthenticationServerTestBase.java:275) Actually, there were zero interactions with this mock.
  3. 0

    GitHub comment 7932#227407129

    GitHub | 6 months ago | hasancelik
    org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: executionCallback.onFailure( <Capturing argument> ); -> at com.hazelcast.spi.impl.operationservice.impl.Invocation_TimeoutTest$2.run(Invocation_TimeoutTest.java:60) Actually, there were zero interactions with this mock.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 7932#228714478

    GitHub | 5 months ago | hasancelik
    org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: executionCallback.onFailure( <Capturing argument> ); -> at com.hazelcast.spi.impl.operationservice.impl.Invocation_TimeoutTest$4.run(Invocation_TimeoutTest.java:341) Actually, there were zero interactions with this mock.
  6. 0

    GitHub comment 67#63746084

    GitHub | 2 years ago | seratch
    org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: cacheOps.increasePartVersion("something"); -> at controllers.AdminControllerSpec$$anonfun$9$$anonfun$apply$mcV$sp$12$$anonfun$apply$mcV$sp$13.apply$mcV$sp(AdminControllerSpec.scala:210) Actually, there were zero interactions with this mock.

    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. org.mockito.exceptions.verification.WantedButNotInvoked

      Wanted but not invoked: alertManager.sendQuotaAlert( org.apache.cloudstack.quota.QuotaAlertManagerImpl$DeferredQuotaEmail@42ed8181 ); -> at org.apache.cloudstack.quota.QuotaStatementTest.testSendStatement(QuotaStatementTest.java:251) Actually, there were zero interactions with this mock.

      at org.apache.cloudstack.quota.QuotaStatementTest.testSendStatement()
    2. org.apache.cloudstack
      QuotaStatementTest.testSendStatement
      1. org.apache.cloudstack.quota.QuotaStatementTest.testSendStatement(QuotaStatementTest.java:251)
      1 frame