jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicholas Lesiecki" <n...@eblox.com>
Subject RE: Single test class for both local and remote
Date Tue, 04 Feb 2003 17:38:26 GMT

You could implement a common method that did your testing, and then call it
from both beginXXX (client-side) and testXXX (server-side). Would that work
for you?


P.S. You could also control whether a class extended TestCase or
ServletTestCase at compile time using AspectJ. See:


Nicholas Lesiecki
Principal Software Engineer
eBlox, Inc.
> -----Original Message-----
> From: Tim McNerney [mailto:mcnerney@navis.com]
> Sent: Monday, February 03, 2003 5:00 PM
> To: cactus-user@jakarta.apache.org
> Subject: Single test class for both local and remote
> I want to build a test which works both locally (on the client side) and
> remotely (on the server side). This is basically testing the local and
> remote interfaces of an EJB. Since much of the code would be the same
> for both, I'd like to keep it in one class. Let's say I'm using
> (extending) a ServletTestCase for the server side test. Is there some
> way for me to tell my test class not to connect to the test on the
> server side but simply run the test locally?
> And I'm making any sense?
> --Tim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message