Anyone know what I'm doing wrong? ..

-----Original Message-----
Sent: Tuesday, 27 January 2009 11:47 AM

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-unsubscr...@jakarta.apache.org
For additional commands, e-mail: cactus-user-h...@jakarta.apache.org


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-unsubscr...@jakarta.apache.org
For additional commands, e-mail: cactus-user-h...@jakarta.apache.org

Reply via email to