Date: 28 April 2011, 05:35
|
JUnit in Action By Tahchiev Petar, Leme Felipe, Massol Vincent, Gregory Gary * Publisher: Manning Publications * Number Of Pages: 375 * Publication Date: 2010-03-28 * ISBN-10 / ASIN: 1935182021 * ISBN-13 / EAN: 9781935182023 Product Description: When JUnit was first introduced a decade ago by Kent Beck and Erich Gamma, the Agile movement was in its infancy, "Test Driven Development" was unknown, and unit testing was just starting to move into the typical developer's vocabulary. Today, most developers acknowledge the benefits of unit testing and rely on the increasingly sophisticated tools now available. The recently released JUnit 4.5 represents the state of the art in unit testing frameworks, and provides significant new features to improve the Java development process. JUnit in Action, Second Edition is an up-to-date guide to unit testing Java applications (including Java EE applications) using the JUnit framework and its extensions. This book provides techniques for solving real-world problems such as testing AJAX applications, using mocks to achieve testing isolation, in-container testing for Java EE and database applications, and test automation. Written to help readers exploit JUnit 4.5, the book covers recent innovations such as the new annotations that simplify test writing, improved exception handling, and the new assertion methods. You'll also discover how to use JUnit extensions to test new application styles and frameworks including Ajax, OSGi, and HTML-based presentation layers. Using a sample-driven approach, various unit testing strategies are covered, such as how to unit test EJBs, database applications, and web applications. Also addressed are testing strategies using freely available open source frameworks and tools, and how to unit test in isolation with Mock Objects. The book will also bring you up to speed on the latest thinking in TDD, BDD, Continuous Integration, and other practices related to unit testing. About the Author Building on the first edition by Vincent Massol and Ted Husted, authors Petar Tahchiev, Stan Silvert and Felipe Leme team up to provide a completely-updated version of this Manning classic. Petar Tahchiev is a software engineer with Hewlett Packard and serves as the Jakarta Cactus lead developer and a Jakarta PMC member with the Apache Software Foundation. He is the leader of the Bulgarian Java User Group (BGJUG) and a frequent speaker at OpenFest, ApacheCON, CommunityONE, and other conferences. Felipe Leme has worked as a software engineer with Java since 1996 and is an active member of the community. He is a 4-time repeat speaker at JavaOne, has written dozens of Java-related articles and contributed to many open-source projects including DbUnit and Jakarta Cactus, and became an individual JCP in 2003. Stan Silvert was once the only JSF guy at JBoss, but with the success of Seam framework, he is now one of many. A long-time proponent of testing, he is the driving force behind JSFUnit. Summary: JUnit in Action - excellent book in excellent condition Rating: 5 JUnit in Action The book was shipped on time, and was in excellent (new) condition! Thanks! Summary: A bit verbose Rating: 2 So I am relatively new to Java programming and self-taught. I have read some of the sold basics such as Murach's Java SE 6, Head First Java, Effective Java amongst others, and I have started coding and I like what I am doing. Sure, I understand that unit testing is important, and it is not difficult to see the benefits, so where to do I start. If I wanted to read a novel I would buy one, but I bought a JUnit book and I want to know how. I can recognize a good java books and this is not one of them. It does not cut to the chase, it takes a linear narrative approach throughout in that it sort of assumes in later chapters that you have completed the previous chapters in detail. It assumes you have very little java knowledge and attempts to nurse you through with "gentle encouragement etc" It is also filled with pseudo poetic guff, such as "The exceptional test case is where unit tests really shine". 1) java doesn't shine but stars do as do polished cadillac fenders and 2) even a beginner can see that this should be bread-and-butter unit testing stuff and nothing particularly spectacular. Anyway, the book padded with this sort of guff. What is it with computer programming authors, some are really expert, clear, and cut to the chase, others just want to express their inner whatever and caring and sharing in their texts, they should readDating Design Patterns and leave the computer market to those who can. Summary: Best Junit book Rating: 5 This is one of the best Junit books that I have read. Definitely a keeper in your bookshelf Summary: Good book, but needs new version. Rating: 4 With the new Junit4, the book needs a new version. Summary: Good Introduction to UNIT testing Rating: 4 I read this book pretty much from cover to cover. I found it to be a nice introduction to the unit testing strategy now widely employed in software development projects. This book does put the testing procedures in perspective and it touches upon different types/levels of testing that need to performed to ensure that the code is as bug-free as possible. I really got interested in writing unit tests after writing this book. The concept of Test Driven Development made a lot of sense and I will certainly try to incorporate this strategy into future projects. Most of the time explanations are consice, clear and to the point. Several open source frameworks such as EasyMock and DynaMock are introduced briefly - although the level of detail is not as good as I would like it to be, it is nevertheless good to know where to look for frameworks (that someone already developed) you might need for your projects. The only downside to this book is that it is out of date. The JUNIT used in this book (3.8) is not the latest version available. I tested all of the code after downloading it from the web and I found that some of the samples did not work. In some cases, the software is dated. For example, in some chapters, the author uses Maven 1.0 instead of ANT as the build tool. However, for Maven to work, it needs to download several jar files from remote repository to the local repository on your machine. The very first time you run Maven, it is supposed to do this automatically for you before building your project; however, Maven 2.0 is out and the remote repository links with Maven 1.0 is broken which means that you need to download several jar files from google manually and put them in relevant folders - since there are several of them, I eventually gave up after doing a partial configuration. Note that the build files that use Maven 1.0 will not work with Maven 2.0 - you will need to do significant configuration changes in order to get this to work. I am new to Maven (although I am very experienced with ANT), so I did not bother with trying to get these code samples to work. The other thing I noticed is that some of the Cactus examples are not working in this book. In some cases, I had to do configuration changes and in others such as the chapter on unit testing the EJB, I was not yet able to figure out what went wrong. In any case, you can't simply expect to run the code and expect it to work especially in the later chapters!!! Be prepared to spend time to figure out what went wrong and how to fix it. All in all, it is a nice book on introduction to unit testing and I will certainly recommend it to newcomers to this arena. Also, note that the level of detail and treatment provided in this book is not sufficient for real world projects. I am planning on getting a more advanced book (JUnit Recipies) to complete the picture.
|
DISCLAIMER:
This site does not store JUnit in Action on its server. We only index and link to JUnit in Action provided by other sites. Please contact the content providers to delete JUnit in Action if any and email us, we'll remove relevant links or contents immediately.
|
|
|