mocking 341

  1. How to make mock to void methods with mockito
  2. What's the difference between a mock & stub?
  3. What's the difference between faking, mocking, and stubbing?
  4. What's the best mock framework for Java?
  5. What is Mocking?
  6. Can Mockito capture arguments of a method called multiple times?
  7. What's the best strategy for unit-testing database-driven applications?
  8. Mockito test a void method throws an exception
  9. Returning value that was passed into a method
  10. Difference between @Mock and @InjectMocks
  11. Use Mockito to mock some methods but not others
  12. Mocking static methods with Mockito
  13. Can Mockito stub a method without regard to the argument?
  14. Verify object attribute value with mockito
  15. Using Mockito to test abstract classes
  16. Using Mockito with multiple calls to the same method with the same arguments
  17. Using Mockito's generic “any()” method
  18. How to mock the Request on Controller in ASP.Net MVC?
  19. What are the differences between mocks and stubs on Rhino Mocks?
  20. Mock HttpContext.Current in Test Init Method
  21. How to tell a Mockito mock object to return something different the next time it is called?
  22. Using Moq to determine if a method is called
  23. Android mock location on device?
  24. How do I mock a service that returns promise in Angularjs Jasmine unit test?
  25. ASP.NET WebApi unit testing with Request.CreateResponse
  26. What is the purpose of mock objects?
  27. How can I mock dependencies for unit testing in RequireJS?
  28. How to unit test a node.js module that requires other modules
  29. How do I mock an open used in a with statement (using the Mock framework in Python)?
  30. How to check String in response body with mockMvc
  31. How can I get PHPUnit MockObjects to return different values based on a parameter?
  32. Injecting a mock into an AngularJS service
  33. Mocking Extension Methods with Moq
  34. How do you mock out the file system in C# for unit testing?
  35. Comparison between Mockito vs JMockit - why is Mockito voted better than JMockit?
  36. How to properly match varargs in Mockito
  37. Random data in Unit Tests?

  38. What is the difference between mocking and spying when using Mockito?
  39. How can I mock an ES6 module import using Jest?
  40. Mocking member variables of a class using Mockito
  41. Mock functions in Go
  42. Moq mock method with out specifying input parameter
  43. When should I mock?
  44. Using IoC for Unit Testing
  45. Python: Trying to mock but not working
  46. How do I mock the HttpContext in ASP.NET MVC using Moq?
  47. Mock vs MagicMock
  48. How to mock an import
  49. Assert a function/method was not called using Mock
  50. Asserting successive calls to a mock method