Is verifying a mock interaction a good enough test?
1.using EasyMock or Mockito | The road so far....
Description:09-01-2011 · Now this makes me feel that the tests are not
good enough. ... every possible interaction with mock else ... test should
be verifying the documented ...
2.Mockito (Mockito API)
Description:verify(mock) .someMethod(anyInt ... Making sure interaction(s)
never happened on mock ... Those two should be just enough to
test/test-drive any clean & simple code.
3.unit testing - What is Mocking? - Stack Overflow
Description:The stub implements just enough behavior to allow the object
under test to ... Part of the test is verifying that the mock was used ...
This is a good answer, but it ...
4.What's wrong with the Record/Reply/Verify model for mocking ...
Description:Verifying the mock slowly but almost inevitably ... I agree
with mockists that sometimes an interaction test is the ... I almost never
care about how good or ...
5.Mock object - Wikipedia, the free encyclopedia
Description:Reasons for use . In a unit test, mock objects can simulate
the behavior of complex, real objects and are therefore useful when a real
object is impractical or ...
6.Agile Testing: Mock testing examples and resources
Description:15-12-2006 · Mock testing is a very controversial topic in the
area of unit testing. Some people swear by it, others swear at it. As
always, the truth is somewhere in ...
7.Using EasyMock or Mockito | Java Code Geeks
Description:Now this makes me feel that the tests are not good enough. ...
EasyMock.verify(otherService); } @Test ... of the developer i.e. how the
interaction are happening and ...
8.QuickStart - moq - The simplest mocking library for .NET and ...
Description:19-04-2012 · Good question. Is the install ... But Moq shows
as if it doesn't call at all. this test passes: mock.verify(p=>p.m1(),
Times.Once(), errorMessage); mock ...
9.TDD Best Practices: Don't Mock Others- Test Driven JavaScript
Description:Test Doubles play an important role in the practice of ...
verifying component interaction, ... While isolating components from their
dependencies is a Good ...
10.Femgineer – Trade-offs in Unit Testing – Part I Mock Objects
Description:One of my many roles at Mint.com is the lead test engineer. I
believe I was appointed this role by our CEO, because I am pretty good at
thinking through use cases ...
No comments:
Post a Comment