JUnit pocket guide

JUnit pocket guide

4.11 - 1251 ratings - Source

JUnit, created by Kent Beck and Erich Gamma, is an open source framework for test-driven development in any Java-based code. JUnit automates unit testing and reduces the effort required to frequently test code while developing it. While there are lots of bits of documentation all over the place, there isn't a go-to-manual that serves as a quick reference for JUnit. This Pocket Guide meets the need, bringing together all the bits of hard to remember information, syntax, and rules for working with JUnit, as well as delivering the insight and sage advice that can only come from a technology's creator. Any programmer who has written, or is writing, Java Code will find this book valuable. Specifically it will appeal to programmers and developers of any level that use JUnit to do their unit testing in test-driven development under agile methodologies such as Extreme Programming (XP) [another Beck creation].Suppose we want to test that the correct SQL query is generated when we ask a Librarian object to fetch us some accounts. First, we make our test case class an implementor of IDatabase: public class QueryTest extends TestCase implements anbsp;...

Title:JUnit pocket guide
Author:Kent Beck
Publisher:O'Reilly Media, Inc. - 2004


You Must CONTINUE and create a free account to access unlimited downloads & streaming