Top "Stub" questions

A replacement implementation for objects, methods, or functions in order to remove external dependencies.

Access restriction on class due to restriction on required library rt.jar?

I'm attempting to compile Java 1.4 code that was created by IBM's WSDL2Java on Java5 without recreating the stubs and …

java eclipse wsdl stub wsdl2java
What's the difference between a mock & stub?

I've read various articles about mocking vs stubbing in testing, including Martin Fowler's Mocks Aren't Stubs, but still don't understand …

testing mocking stub
java.net.ConnectException :connection timed out: connect?

I have used RMI in my code : import java.rmi.*; public interface AddServerIntf extends Remote { double add(double d1,double …

java networking rmi stub
What does "to stub" mean in programming?

For example, what does it mean in this quote? Integrating with an external API is almost a guarantee in any …

api stub
What is a "Stub"?

So, carrying on with my new years resolution to get more in to TDD, I am now starting to work …

unit-testing testing tdd stub
How do I stub things in MiniTest?

Within my test I want to stub a canned response for any instance of a class. It might look like …

ruby minitest stub
How to stub process.env in node.js?

I want to stub process.env.FOO with bar. var sinon = require('sinon'); var stub = sinon.stub(process.env, 'FOO', …

node.js stub sinon
Difference between Mock / Stub / Spy in Spock test framework

I don't understand the difference between Mock, Stub, and Spy in Spock testing and the tutorials I have been looking …

testing mocking spock stub spy
How to use stubs in JUnit and Java?

I have worked with JUnit and Mocks but I'm wondering, what are the differences between Mocks and Stubs in JUnit …

java junit stub
Can RSpec stubbed method return different values in sequence?

I have a model Family with a method location which merges the location outputs of other objects, Members. (Members are …

ruby-on-rails testing rspec stub