| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 ] |
| Articles Books | Weblogs |
- Write Eclipse JUnit Tests in Jython by Laurent Ploix, Amaury Forgeot d'Arc - [Clicks: 84]
Eclipse integrates the JUnit framework to enable seamless tests integration in Java, and Python is a great language for writing tests. Learn how to write Eclipse JUnit tests in Jython (Python for Java).
[Includes source code]
http://www.devx.com/Java/Article/26602 - Dec, 2004 - Practically Groovy: Unit test your Java code faster with Groovy by Andrew Glover - [Clicks: 51]
Not long ago, developerWorks contributor Andrew Glover penned an article introducing Groovy, a new proposed standard language for the Java platform, as part of our alt.lang.jre series. Reader response was fantastic, so we've decided to launch this column to offer a practical guide to using this hot new technology. This first installment introduces a simple strategy for unit testing Java code with Groovy and JUnit.
http://www-106.ibm.com/developerworks/library/j-pg11094/ - Nov, 2004 - In-Container Testing with JUnit by Julien Dubois - [Clicks: 85]
In this article, I will describe the application of in-container testing in order to make JUnit tests access objects running inside a J2EE container. The example used here is a Struts-based Web application, which is fairly common among enterprise applications, but the techniques discussed are relevant to any J2EE project.
http://www.oracle.com/technology/pub/articles/server_side_unit_tests.html - Aug, 2004 - Testing Private Methods with JUnit and SuiteRunner by Bill Venners - [Clicks: 37]
This tutorial discusses whether to test private methods and suggests several approaches.
http://www.artima.com/suiterunner/private.html - May, 2004 - Use Jython to build JUnit test suites by Michael Nadel - [Clicks: 43]
Developers decide to automate unit tests for a number of reasons. Many take it even a step further and automate the location and execution of those tests. But what if you need your test harness to act as if it were statically defined? Follow along with developer Michael Nadel and see how to use Python to feign statically defined JUnit TestSuite classes.
[Includes source code]
http://www-106.ibm.com/developerworks/java/library/j-jythtest.html - May, 2004 - Using JUnit With Eclipse IDE by Alexander Prohorenko, Olexiy Prokhorenko - [Clicks: 110]
This article is going to introduce you to JUnit, a tool for project testing and debugging. After introducing the theory of test-driven development, we'll move on to a step-by-step explanation of how you can create your JUnit tests with the help of the popular Eclipse IDE. We'll show how something as simple as a Hello World program can be exposed to a JUnit test.
http://www.onjava.com/pub/a/onjava/2004/02/04/juie.html - Feb, 2004 - A Dozen Ways to Get the Testing Bug in the New Year by Mike Clark - [Clicks: 14]
This article gives you 12 practical ways to start writing tests, and keep writing tests, regardless of your development process. The first two techniques play off of things you're probably already doing, so you don't have to move too far out of your comfort zone. The next two challenge you to wade deeper into the pool to realize the benefits of test-driven development. The remaining techniques round out the regimen to keep you testing effectively all year. You'll be well on your way to fulfilling your new year's resolutions. Caution: contents have been known to be infectious!
http://today.java.net/pub/a/today/2004/01/22/DozenWays.html - Jan, 2004 - Test-Driven Development - Testing Java Classes with JUnit by Wellie Chao - [Clicks: 114]
This article, the second of a five part series on test-driven development, looks at the advantages of JUnit as a testing framework, overviews essential testing concepts and terminology, and walks you through writing a JUnit test case for a sample, FactorCalculator application. The remaining three articles in this series will cover, unit testing of EJB components, black box and in-container testing of servlets and JSPs, and in-container testing of Struts web applications.
[Includes source code]
http://www.theserverside.com/articles/article.jsp?l=TestDrivenDevelopmentPart2 - Jan, 2004
- JUnit Pocket Guide
by Kent Beck - [Clicks: 43]
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.
O'Reilly Media, Inc., Paperback - Sep, 2004 - JUnit Recipes: Practical Methods for Programmer Testing
by J. B. Rainsberger, Scott Stirling - [Clicks: 42]
When testing becomes a developer's habit good things tend to happen--good productivity, good code, and good job satisfaction. If you want some of that, there's no better way to start your testing habit, nor to continue feeding it, than with JUnit Recipes. In this book you will find one hundred and thirty seven solutions to a range of problems, from simple to complex, selected for you by an experienced developer and master tester. Each recipe follows the same organization giving you the problem and its background before discussing your options in solving it..
Manning Publications, Paperback - Jun, 2004 - Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven
by Rick Hightower, Warner Onstine, Paul Visan, Damon Payne, Joseph D. Gradecki, Kate Rhodes, Robert Watkins, Erik Meade - [Clicks: 199]
The Extreme Programming (XP) methodology enables you to build and test enterprise systems quickly without sacrificing quality. In the last few years, open source developers have created or significantly improved a host of Java XP tools, from XDoclet, Maven, AntHill, and Eclipse to Ant, JUnit, and Cactus. This practical, code-intensive guide shows you how to put these tools to work - and capitalize on the benefits of Extreme Programming. Using an example pet store application, our expert Java developers demonstrate how to harness the latest versions of Ant and XDoclet for automated building and continuous integration. They then explain how to automate the testing process using JUnit, Cactus, and other tools, and to enhance project management and continuous integration through Maven and AntHill. Finally, they show you how to work with XP tools in the new Eclipse IDE. Complete with real-world advice on how to implement the principles and practices of effective developers, this book delivers everything you need to harness the power of Extreme Programming in your own projects.
Wrox, Paperback - Apr, 2004
- Embedding JUnit tests by Bruce Eckel - [Clicks: 20]
For the 4th edition of Thinking in Java, I've been experimenting with ways to take better control of JUnit testing. My primary interest is in automatically generating the JUnit code itself to minimize the effort of the programmer. One approach is to use JUnitDoclet, which automatically creates frameworks of JUnit code for various classes. This is certainly a step in the right direction by eliminating all the redundant code generation, but:
http://mindview.net/WebLog/log-0054 - Apr, 2004