testing - Why mockito returns error eve argument are identical? -


What's happening with the confirmed case went to see the picture Mokito?

I want to do is start with the argument factory verify that view

  @Test public void shouldInitializeTheDriverWithTheRequestFactory () {CVProxy proxy = context.create (CVProxy.class ). Workflow.initialize (); Verify (see) .initializeWithRequestFactory (factory); Verify (see). EditWit Editor (Proxy, Reference); }  

But I have this error which is strange?

  Logic (s) are different! Wanted: view.initializeWithRequestFactory (com.google.web.bindery.requestfactory.vm.InProcessRequestFactory@13c6a22); - & gt; CreatingNewCVWorkflowTest.shouldInitializeTheDriverWithTheRequestFactory (CreatingNewCVWorkflowTest.java:53) the actual invocation different argument: view.initializeWithRequestFactory (com.google.web.bindery.requestfactory.vm.InProcessRequestFactory@13c6a22);  

As you can, arguments are logical. enter image description here

factory provide a badly implemented that it is possible method?


Comments