RE: Viewing Test Results
Nicole Luneburg <[email protected]> Tue, 27 Jan 2009 11:47:01 +1030
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
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 =3D Logger.getLogger(UserTe=
st.class);
public UserTest(final String name) {
super(name);
}
public void begin(WebRequest theRequest) {
System.out.println("inside begin()");
theRequest.setRedirectorName("ServletRedirectorSe=
cure");
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 b=
egin(...) method. Why?
3) I'm not sure if I mentioned in my last email ... the xml files are not g=
enerating 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 e=
mail is free of viruses or other defects. If you have received this communi=
cation 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 incorrec=
t receipt of this correspondence.