Top "Stub" questions

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

Stubbing out functions or classes

Can you explain the concept stubbing out functions or classes taken from this article? class Loaf: pass This class doesn't …

python stub stubbing
Usage of Assert.Inconclusive

I'm wondering how someone should use Assert.Inconclusive(). I'm using it if my unit test would be about to fail …

.net mocking tdd assert stub
Stub vs Mock when unit testing

I have lately become very interested in testing and Im now trying to learn to do unit testing in the …

c# unit-testing mocking stub
what is a stub routine?

In regards to C what is a stub routine? Also an example would be much appreciated as well.

c terminology stub routines
C++ Unit Testing: Stubs (not mocks)?

Just getting into Unit Testing with C++. It looks like I will need to write several stub classes as I …

c++ unit-testing mocking stub googlemock
meaning of RuntimeException("Stub!") in Android

I was surfing in Android code because I wanted to see what is into Activity.finish() method. I just wanted …

java android android-activity stub
EntityFunctions.TruncateTime and unit tests

I'm using System.Data.Objects.EntityFunctions.TruncateTime method to get date part of a datetime in my query: if (searchOptions.…

entity-framework unit-testing entity-framework-4 stub
Using Moq to Stub an interface method

Possible Duplicate: How to mock a method that returns an int with MOQ Here's my interface: public interface ICalenderService { DateTime …

c# .net unit-testing moq stub
Prevent stubbing of equals method

I would like to test my class' equals() method but Mockito seems to be calling the stub version every time. …

methods mocking mockito equals stub
Stub one method of class and let other real methods use this stubbed one

I have a TimeMachine class which provides me current date/time values. The class looks like this: public class TimeMachine { …

c# mocking rhino-mocks stub