Thanks for your comment; I tried to preempt such comments with my preamble; I guess I failed.
>>>
Setting aside the discussion of stubs Vs. mocks in JUnit testing (that is covered more than adequately elsewhere), let’s say you’ve decided to use stubs, for whatever reason.
Please understand that the simple examples in this article may be more appropriately handled with mocks; they are for illustrative purposes only
<<<
The key phrase being “…let’s say you’ve decided to use stubs, for whatever reason…”
I necessarily had to greatly simplify the example. I had, and have, no intention of getting into a religious war on the subject.
Comments
jfpoilpret replied ago:
Why not use EasyMock or jMock, but reinvent the wheel?
Gruss replied ago:
Thanks for your comment; I tried to preempt such comments with my preamble; I guess I failed.
>>>
Setting aside the discussion of stubs Vs. mocks in JUnit testing (that is covered more than adequately elsewhere), let’s say you’ve decided to use stubs, for whatever reason.
Please understand that the simple examples in this article may be more appropriately handled with mocks; they are for illustrative purposes only
<<<
The key phrase being “…let’s say you’ve decided to use stubs, for whatever reason…”
I necessarily had to greatly simplify the example. I had, and have, no intention of getting into a religious war on the subject.
Voters For This Link (6)
Voters Against This Link (2)