I\'m using ruby 1.9 and I\'m trying to do BDD. My first test \'should read in the csv\' works, but the second where I require a file object to be mocked doesn\'t.
I want to test that the controller calls the service method with the correct arguments. What is the best way to do that?
How can I create a fake with FakeItEasy that allows different return values on successive calls. This is one example of what I would like to be able to do:
I\'m writing a functional test for a legacy Python script so that I can make a one-line change to it without being paralysed by fear. ;)
im开发者_Go百科 looking for something similar to what i would do with rhino mocks but in groovy.
Is it possible to use some kind of mocking framework with Arquillian, or precisely how to mock injected EJBs? I know that, with using the CDI (Contexts and Dependency Injection), it is possible to inj
I need to write a JUnit test for the following method (simplified): /** Return name of previous entry or name of given entry if no previous entry. */
I\'m writing a unit test that relies on an external class, exceptionManager. I want to be able to predict what some specific functions on this class will return, so I\'m using a mock object. The code
I am trying to create a generic way of using either a mock object or the proxy object when calling the GetGreeting(). How can i structure the code so it is more generic ie not only for the GreetingSer
I\'m looking for your opinion on the technologies you have used successfully - or not so successful开发者_StackOverflow中文版ly - to automate your Java EE/EJB3 unit and integration testing.I\'ll take