I\'m just starting with Robolectric.It seems to be working fine to mock most Android classes but when my class under test tries to create a DefaultHttpClient() it gets the dreaded \"Stub!\" error.
In my Rails 3 application I have a controller with the following actions (code simplified): def payment
I\'m struggling with some very basic/conceptual problem with Moq and StructureMap. Given the following code, the test fails. Why? It seems that my mocked/injected functionality on the Numbers property
I have the following simple method, in my Service layer. I\'m not sure how I should mock out the different chained parts, starting from the repository?
Consider the following method that stops a service: Public Function StopService(ByVal serviceName As String, ByVal timeoutMilliseconds As Double) As Boolean
Im using Rhino-Mocks 3.6 as mocking framework in my unit tests and have a problem with Repeat.Times():
I have an object that I\'m mocking with a JMockit NonStrictExcpection() in the @Before/setUp() method of my test class so that it returns the value expected for normal execution of my class under test
We are going to implement a small java application with BDD, which reads an MS excel sheet using POI of apache.org and prints some text based on that excel to the STDOUT. We agreed that the simplest s
I have just begun to work with MS Moles for testing and I have followed the idea/pattern in which jcollum(thanks) uses a Mole for a table in this stackoverflow question here.
I am beginning with mockito and wondering how to fake adding an observer. I want to write a test that ensures that the observer count has increased after a function call.