Stubbing is modifying an instance method or property of an object at runtime to extend its functionality.
Is there a way to easily reset all sinon spys mocks and stubs that will work cleanly with mocha's beforeEach …
javascript testing mocha stubbing sinonI have a method i'd like to stub but it has a lot of parameters. How can i avoid mocking …
java unit-testing mocking mockito stubbingI'm trying to stub this getKeyFromStream method, using the 'any' matchers. I've tried being more explicit and less explicit (anyObject()), …
java unit-testing mockito stubbingWhen writing a request spec, how do you set sessions and/or stub controller methods? I'm trying to stub out …
ruby-on-rails-3 rspec integration-testing stubbingI am trying to test some client-side code and for that I need to stub the value of window.location.…
javascript mocha sinon stubbingI work with Typescript on an AngularJS 1.X project. I use different Javascript libraries for different purposes. To unit-test my …
javascript angularjs typescript sinon stubbingLet's say I have an mock object, and I don't want to stub any of it's methods, but I want …
java mockito method-chaining stubbing