ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button

Unit Tests for EJBs, Decorating as a Way of Extension

by chromatic
ONJava Newsletter for 02/06/2003

Dear Readers,

Welcome to yet another ONJava.com newsletter. It's a chilly but sunny morning here at O'Reilly headquarters in Sebastopol, California, but nothing will stop this newsletter now. This week, we have two interesting articles to educate, inform, and entertain you.

The Java community has taken to unit testing like a linebacker to a buffet. JUnit's widely used, and the unit-testing folks love to write examples in Java. That doesn't mean testing everything is immediately obvious. A new author, JiRong Hu, has been thinking about EJBs lately. He presents a way to test them in Automating EJB Unit Testing.

One of the cornerstones of object-oriented programming is the notion of polymorphism--and inheritance is, possibly, the most common way to take advantage of this. Any two objects that act alike (on a semantic level) can be substituted for each other. Of course, inheritance has its drawbacks. Budi Kurniawan presents the Decorator pattern and demonstrates how to modify the behavior of an object without subclassing it. That's not all. Read more in Using the Decorator Pattern.

To subscribe to the ONJava.com newsletter (or any O'Reilly Network newsletters), visit https://epoch.oreilly.com/account/default.orm and select the newsletters you wish to receive in your user profile (you'll need to log in with your existing O'Reilly Network account -- if you don't yet have an account, you'll need to create one).

To change your newsletter subscription options, please visit https://epoch.oreilly.com/account/default.orm and click the"Manage My Newsletters" link. For assistance, send help to

There's just over one week left to submit your proposals for OSCON 2003. It's probably rainy and definitely overcast there now, but come July, it'll be clear, warm, and lovely in Portland--and filled with buzz about your favorite open source Java (and non-Java) projects. Act now.

Next week, our book excerpts will return. Find out who did it in the stunning conclusion of Java Swing. (After that, perhaps we'll take a tour through more Java Enterprise Best Practices.)

Until then,

O'Reilly Network Technical Editor

ONJava.com News and Weblogs

The Big 3 Web Services Players

A New Recipe for Running JUnit Tests

Guido van Rossum on Contracts in Python

Java Code Recipe of the Day

Java Events

Other O'Reilly Network sites

O'Reilly Network



O'Reilly and Associates

O'Reilly Java

ONJava.com Affiliates



Return to list of ONJava Newsletters.

Return to the ONJava.com.