Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

unit tests

  • submit to reddit

@Ignore unit tests immediately if they fail!

In development teams, there is often discussion about using the @Ignore tag for failing tests. In particular, developers who are very enthusiastic about writing unit tests often tend to be very dogmatic about it. They argue, "A test should never be...

4 replies - 2373 views - 07/25/11 by Michael Schnell in Articles

PODAM Draft release is available now

The first draft of PODAM is ready. Currently the framework sets the initial state of a POJO with random values. The supported types are: Primitive typesWrapper classesStringarrays of objectsarrays of primitivesAny other object which either has a no-arg...

0 replies - 768 views - 04/03/11 by Marco Tedone in Announcements

Yet More Praise for Unit Tests

I can't say enough good things about TDD. But I'll try.Due to an epic failure to read the documentation (this, specifically) I couldn't get our RESTful web services to work in Apache.

0 replies - 3383 views - 04/27/10 by Steven Lott in News

Why You MUST Read Clean Code

Clean Code: A Handbook of Agile Software Craftsmanship written by Robert C. Martin is one of the best books I have read in the past few years. This is the book for developers looking to produce better code.

18 replies - 15710 views - 10/13/08 by Meera Subbarao in Articles

Unit Testing With TestNG and JMockit

TestNG is a testing framework for unit test development. JMockit is a framework for mock objects that provides mock object functionality using the java.lang.instrument package of jdk 1.5. Together, these frameworks can provide the tools to create very robust...

4 replies - 24323 views - 06/24/08 by Michael Minella in Articles

Reducing Coupling Through Unit Tests

After my previous post on the subject of coupling and cohesion, a lot of the feedback I've gotten has been from people who want examples of lowering coupling, or want to know how they can see if their code is loosely coupled. (Reposted from my blog.)The...

2 replies - 4026 views - 05/23/08 by Vidar Hokstad in News