org.mockito.exceptions.verification.WantedButNotInvoked

Wanted but not invoked: schedulerActions.startRunSpec( AppDefinition(/app,None,List(),None,Map(),2,Resources(1.0,128.0,0.0,0),,Set(),List(),List(),List(PortDefinition(0,tcp,None,Map())),false,BackoffStrategy(1 second,1 hour,1.15),None,Set(MarathonHttpHealthCheck(5 minutes,1 minute,20 seconds,3,Some(ByIndex(0)),None,None,HTTP,false)),List(),None,Set(),UpgradeStrategy(1.0,1.0),Map(),Set(),None,OnlyVersion(2017-01-05T00:53:36.102Z),None,Map(),UnreachableStrategy(5 minutes,10 minutes),YoungestFirst) );


Solutions on the web15

Solution icon of github
via GitHub by HackToday
, 7 months ago
(MarathonHttpHealthCheck(5 minutes,1 minute,20 seconds,3,Some(ByIndex(0)),None,None,HTTP,false)),List(),None,Set(),UpgradeStrategy(1.0,1.0),Map(),Set(),None,OnlyVersion(2017-01-05T00:53:36.102Z),None,Map(),UnreachableStrategy(5 minutes,10 minutes),YoungestFirst) );

Solution icon of github
Wanted but not invoked: serverListener.onGoAwayRead( <any>, 0, 1, <any> ); -> at io.netty.handler.codec.http2.Http2ConnectionRoundtripTest.noMoreStreamIdsShouldSendGoAway(Http2ConnectionRoundtripTest.java:242) However, there were other

Solution icon of github
Wanted but not invoked: candidate.offerLeadership($anon$5 [NEW]); -> at mesosphere.marathon.MarathonSchedulerServiceTest$$anonfun$6$$anonfun$apply$mcV$sp$2.apply(MarathonSchedulerServiceTest.scala:279) Actually, there were zero interactions with this mock.

Solution icon of github
Wanted but not invoked: taskFailureRepository.store( /test-app, TaskFailure(/test-app,value: "test-app.e9bfaf7d-5255-11e6-98a4-4a78e4b13508" ,TASK_FAILED,,,1970-01-01T00:00:00.000Z,2016-07-25T10:52:42.874Z,Some(value: "" )) );

Solution icon of github
Wanted but not invoked: [info] byteArrayInputStream.close();

Solution icon of github
Wanted but not invoked: protonConnection.createSender( "telemetry/tenant" );

Solution icon of apache
via cloudstack-dev by jenkins@cloudstack.org, 1 month ago
Wanted but not invoked: alertManager.sendQuotaAlert( org.apache.cloudstack.quota.QuotaAlertManagerImpl$DeferredQuotaEmail@42ed8181 );

Solution icon of github
Wanted but not invoked: persistentStoreWithNestedPathsSupport.update( StoreEntity(Model(/new/id)) );

Solution icon of apache
via cloudstack-dev by Mike Tutkowski, 1 month ago
Wanted but not invoked: alertManager.sendQuotaAlert( org.apache.cloudstack.quota.QuotaAlertManagerImpl$DeferredQuotaEmail@6e9d6ff7 );

Stack trace

  • org.mockito.exceptions.verification.WantedButNotInvoked: Wanted but not invoked: schedulerActions.startRunSpec( AppDefinition(/app,None,List(),None,Map(),2,Resources(1.0,128.0,0.0,0),,Set(),List(),List(),List(PortDefinition(0,tcp,None,Map())),false,BackoffStrategy(1 second,1 hour,1.15),None,Set(MarathonHttpHealthCheck(5 minutes,1 minute,20 seconds,3,Some(ByIndex(0)),None,None,HTTP,false)),List(),None,Set(),UpgradeStrategy(1.0,1.0),Map(),Set(),None,OnlyVersion(2017-01-05T00:53:36.102Z),None,Map(),UnreachableStrategy(5 minutes,10 minutes),YoungestFirst) ); at mesosphere.marathon.upgrade.AppStartActorTest$$anonfun$2.apply(AppStartActorTest.scala:58)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.