Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@apache.org Received: (qmail 56727 invoked from network); 22 Mar 2002 00:32:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 22 Mar 2002 00:32:04 -0000 Received: (qmail 6081 invoked by uid 97); 22 Mar 2002 00:32:10 -0000 Delivered-To: qmlist-jakarta-archive-cactus-user@jakarta.apache.org Received: (qmail 6043 invoked by uid 97); 22 Mar 2002 00:32:09 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 6032 invoked from network); 22 Mar 2002 00:32:09 -0000 From: "Nicholas Lesiecki" To: "Cactus Users List" Subject: RE: Session attribute test Date: Thu, 21 Mar 2002 17:34:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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) In-Reply-To: <01f601c1d0ae$b8284ba0$ad11620a@lrau> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Liviu, Since Cactus runs in a servlet container, the container should fire a SessionBinding event to your object when you put the object into session. If you need more control over the exact nature of the event, you could also use a mock object. You can find more info about MockObjects at: www.mockobjects.com http://www.junit.org/news/article/patterns/index.htm#MockObjects easymock.org (one of my favorites!) Cheers, Nick -----Original Message----- From: Liviu Rau [mailto:Liviu.Rau@telemobil.ro] Sent: Thursday, March 21, 2002 1:02 AM To: cactus-user@jakarta.apache.org Subject: Session attribute test Hello everyone ! I have a session bean that implements the SessionBindingListener interface and I want to write a TestCase on it. With JUnit I never find a way to pass an event argument to the bound/unbound methods. Now I wonder if Cactus can help me. Cactus is a very new tool for me, so I know virtually nothing about it. Thank you very much ! Liviu Rau -- To unsubscribe, e-mail: For additional commands, e-mail: