jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicole Luneburg <Nicole.Luneb...@lisasoft.com>
Subject RE: Viewing Test Results
Date Tue, 27 Jan 2009 01:17:01 GMT
Hi,

Thanks for the welcome and the response!

Ok so before I modified my assert, I took it out to see what happens.
My class looking like:

package myapp.ejb.service;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;

import org.apache.cactus.ServletTestCase;
import org.apache.cactus.WebRequest;
import org.apache.cactus.client.authentication.FormAuthentication;
import org.apache.log4j.Logger;

public class UserTest extends ServletTestCase {

                private static final Logger log = Logger.getLogger(UserTest.class);

                public UserTest(final String name) {
                                super(name);
                }

                public void begin(WebRequest theRequest) {
                    System.out.println("inside begin()");

                          theRequest.setRedirectorName("ServletRedirectorSecure");
                        theRequest.setAuthentication(new FormAuthentication("test", "test"));
                }

                public void setUp() throws Exception {
                                log.info("inside setUp() ");
                }

                protected void tearDown() throws Exception {
                                log.info("inside tearDown() ");
                }

                public void testGetUserString() {
                                log.info("inside testGetUserString()");
                }
}

So points are:

1) This test fails.
2) This test is successful if I take out the WebRequest operations in the begin(...) method.
Why?
3) I'm not sure if I mentioned in my last email ... the xml files are not generating at all
even though I followed the example app so I cannot see any output there :(:

Nicole


The contents of this email are confidential and may be subject to legal or professional privilege
and copyright. No representation is made that this email is free of viruses or other defects.
If you have received this communication in error, you may not copy or distribute any part
of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect
receipt of this correspondence.

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org


Mime
View raw message