December 12, 2003

Jtest promotes good Java hygiene

Combination of debugging and testing tools keeps your Java code squeaky-clean

If the error is a coding-standard violation, you can double-click on its log entry and the source-code view is handily positioned at the offending line of code. Click on the light bulb icon in the margins, and a pair of dialogs open. One describes the violation, the other suggests a fix. Double click on the suggested fix, and it's made for you.

Run-time errors in the log window describe the violation, identify the line where the error occurred, and can be opened to reveal test case information and a stack trace. The test case information reveals the call that caused the problem, as well as input and output parameters.

Jtest does its job well, but does stand some competition. WSAD already has code for generating JUnit tests, and there’s freeware JUnit and several products for automating it. I wouldn’t be surprised to see tools like Jtest ultimately subsumed into IDEs; several companies are already working on this, including Borland’s move toward incorporating this sort of testing into JBuilder.

But until that type of integration happens, Jtest’s clarity and ease of use make it the sort of tool that should be in every programmer's standard arsenal. Not only does it automate the creation and execution of JUnit-style unit tests, but its static and dynamic testing is roughly analogous to the grammar checking software found in word processors: it finds errors before they become big problems.

Rick Grehan is contributing editor of the InfoWorld Test Center.
Close

On Twitter now

Application development

Powered by Twitter

White Paper

D2D Virtual Tape Library Replication Primer

This whitepaper explains the terminology and concepts behind Data Replication technologies and establishes some sizing rules through worked examples. Learn the new paradigm in disaster tolerance—protect data anywhere.

Download now »

White Paper

An Alternative to Virtualization for Datacenter Cost Savings

Server virtualization is a popular option for dealing with mounting datacenter costs. Another equally promising approach is the use of an Application Delivery Controller. Citrix NetScaler provides a low-cost way for organizations to reduce their server count and accrue cost savings from a reduction in space, cooling, power and personnel.

Download now »

White Paper

Why Your Firewall, VPN, and IEEE 802.11i Aren't Enough to Protect Your Network

The emergence of WLANs has created a new breed of security threats to enterprise networks.

Included in HP ProCurve WLAN solutions is security technology that alleviates threats from WLANs through:
* Monitoring wireless activity inside and out of the enterprise
* Classifying WLAN transmissions into harmful and harmless
* Preventing transmissions that pose a security threat to the enterprise network
* Locating participating devices for physical remediation

Download now »

White Paper

Bringing the Edge to the Data Center

Effectively address data protection challenges, implementing solutions that help store and protect business–critical data while cutting costs and improving efficiency and reliability.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Developer World Newsletter

Receive a weekly roundup about the art and science of software development.

©1994-2009 Infoworld, Inc.