This post originated from an RSS feed registered with Java Buzz
by Kevin Dangoor.
Original Post: What I tested wasn't really a mock
Feed Title: Blue Sky On Mars
Feed URL: http://www.blueskyonmars.com/feed/?cat=8%2C13%2C14
Feed Description: Kevin Dangoor's Weblog of Technology, Entertainment and Life - Java only feed. For all articles, check out http://www.blueskyonmars.com
Aslak Hellesoy's uncommon sense - Oh no, we're testing the Mock! describes an anti-pattern (and I agree with him here) about testing a subclass of the class you're trying to test, rather than the class itself. In his example, he...