Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 14711 invoked from network); 4 Feb 2003 17:39:31 -0000 Received: from unknown (HELO neo.eblox.com) (64.244.125.253) by daedalus.apache.org with SMTP; 4 Feb 2003 17:39:31 -0000 Received: from cirithgorgor (tank [216.183.73.226]) by neo.eblox.com (8.12.7/8.12.6) with SMTP id h14Hchoa029967 for ; Tue, 4 Feb 2003 11:38:44 -0600 From: "Nicholas Lesiecki" To: "Cactus Users List" Subject: RE: Single test class for both local and remote Date: Tue, 4 Feb 2003 10:38:26 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: <3E3F0293.4070205@navis.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tim, 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? Cheers, Nick P.S. You could also control whether a class extended TestCase or ServletTestCase at compile time using AspectJ. See: http://www-106.ibm.com/developerworks/java/library/j-aspectj2/?loc=j Cheers, 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 >