Angsuman's Java Blog

News and views from my perspective as a Chief Software Architect and CEO. Focused on Java and Web Technologies.

Tuesday, February 04, 2003

Testing entity Beans with JUnit

Either use Mock Objects ( )or
(there are other options at ).

I prefer mock objects.

BTW: I am now working at Taragana -

-----Original Message-----
From: Sent: Tuesday, February 04, 2003 7:58 PM
To: angsuman@********.***
Subject: Junit Doubt

Hi Angusman,
Nice to make out that you are working in DoubleTwist.
But the raison d'ĂȘtre for this mail is your interest in Junit..
Searched out your name from

Myself a Java Developer, now working in a Chennai based company.

Do you mind explaining me, how can we use junit to test Entity beans.
More specifically I want to Junit test a method that accepts an
interface/entity bean [that can not be instantiated at the client side] as

Thanks in advance
S**** ******