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 23697 invoked from network); 3 Nov 2003 13:07:04 -0000 Received: from unknown (HELO imr2.ericy.com) (198.24.6.3) by daedalus.apache.org with SMTP; 3 Nov 2003 13:07:04 -0000 Received: from eamrcnt750.exu.ericsson.se (eamrcnt750.exu.ericsson.se [138.85.133.51]) by imr2.ericy.com (8.12.10/8.12.10) with ESMTP id hA3D75Yb005347 for ; Mon, 3 Nov 2003 07:07:05 -0600 (CST) Received: by eamrcnt750.exu.ericsson.se with Internet Mail Service (5.5.2657.72) id ; Mon, 3 Nov 2003 07:05:58 -0600 Message-ID: From: "David Lemieux (QC/EMC)" To: "'Cactus Users List'" Subject: RE: Every failure leads to an error Date: Mon, 3 Nov 2003 07:01:15 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C3A20A.9085C490" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_000_01C3A20A.9085C490 Content-Type: text/plain; charset="iso-8859-1" Hi, Thanks for checking on my problem. I was calling a SessionBean in other test in the same class. Maybe that's it. I stripped everything that might be useful. Here is the whole file. I deleted everything matching *log* in my server directory before deploying the app. Here are included everything matching *log* after I ran this single test. If there is supposed to be anything else, I don't know where to find it. /*****************************************/ package YYYY.applications.sampleapplication; import junit.framework.AssertionFailedError; import junit.framework.Test; import org.apache.cactus.ServletTestCase; import org.apache.cactus.ServletTestSuite; public class TestHello extends ServletTestCase{ public TestHello(String theName){ super(theName); } // For the test to be executable public static void main(String[] theArgs){ junit.swingui.TestRunner.main(new String[] {TestHello.class.getName()}); } public static Test suite(){ ServletTestSuite suite = new ServletTestSuite(); suite.addTestSuite(TestHello.class); return suite; } public void testShouldNotBeSuccess(){ assertTrue("This was predictable",false); } } /*****************************************/ Session bean code : I don't see anything that could match the server side output, but... maybe in the generated classes /*****************************************/ public class HelloEJBBean implements SessionBean { // The current counter is our conversational state. public String message; // // Business methods // /** * Counts up */ public String sayHello() { return message; } public String getName(){ String Name="David"; return Name; } // // EJB-required methods // public void ejbCreate() throws CreateException { this.message = "Hi, what is your name?"; // System.out.println("ejbCreate()"); } public void ejbRemove() { // System.out.println("ejbRemove()"); } public void ejbActivate() { // System.out.println("ejbActivate()"); } public void ejbPassivate() { // System.out.println("ejbPassivate()"); } public void setSessionContext(SessionContext ctx) { } } /*****************************************/ David -----Original Message----- From: Vincent Massol [mailto:vmassol@pivolis.com] Sent: Friday, October 31, 2003 2:48 PM To: 'Cactus Users List' Subject: RE: Every failure leads to an error Hi David, I've tested your use case and Cactus correctly returns a failure for me. The stack trace you're showing is very strange. It is output from the server side (as is proved by the fact that AbstractWebTestCaller.doTest is called). However, the Cactus framework do NOT output anything to the console on the server side. Thus, I believe the test you have executed is NOT the one you're showing us: public void testShouldShowFailure(){ assertTrue("This was predictable",false); } Could that be true? :-) Thanks -Vincent ------_=_NextPart_000_01C3A20A.9085C490--