I have a legacy application, which is working with third-party web service through JAX-RPC. Now I need to unit-test the application by mocking certain XML RPC calls with test data. Actually, I need to
I\'m trying to use FakeItEasy to mock an object that is a member of a C# class I\'m creating. The FakeItEasy documentation indicates that you fake an object in a way similar to this:
We have a reasonably complicated interface hierarchy and I\'m struggling to get Moq to do what I want it to.
I have a question about using PHPUnit to mock a private method inside a class. Let me introduce with an example:
To test a certain part of my code I need to mock out a prototype method to make sure it\'s called. The code looks something like this.
Is there an easy way to stub ALL methods of a groovy class? In one of my tests, I need to make sure a certain code path doesn\'t touch a service at all.
I am trying to follow the typical pattern of overriding the ControllerContext in order to mock HttpContext. In my case I specifically want to test HTTP POSTS so i need to mock Request.Form.
Currently I have my spring application wired up using @Autowired, @Component, @Resource etc.Now I want to write a test that requires the mocking of specific objects in the system but retaining the rea
I\'m trying to test legacy Java application, without an ability to re-factor its code at the moment. All I need to do is to understand what SQL requests it is sending through JDBC and when. All these
I\'m using NUnit to test my application, which I\'ve included a simplified version of below.I\'m looking for a way to fire an event on a mock class, and check that the class under test has received it