Better test method names.

This commit is contained in:
Luke Taylor 2005-03-12 21:20:43 +00:00
parent 0a4fc1731a
commit 9f62da7d1c
1 changed files with 5 additions and 2 deletions

View File

@ -26,7 +26,10 @@ import javax.servlet.ServletException;
import java.security.cert.X509Certificate;
/**
* Tests {@link net.sf.acegisecurity.ui.x509.X509ProcessingFilter}.
*
* @author Luke Taylor
* @version $Id$
*/
public class X509ProcessingFilterTests extends TestCase {
//~ Constructors ===========================================================
@ -147,7 +150,7 @@ public class X509ProcessingFilterTests extends TestCase {
assertNull(result);
}
public void testWithNoCertificate() throws Exception {
public void testAuthenticationIsNullWithNoCertificate() throws Exception {
MockHttpSession session = new MockHttpSession();
MockHttpServletRequest request = new MockHttpServletRequest(null, session);
MockHttpServletResponse response = new MockHttpServletResponse();
@ -169,7 +172,7 @@ public class X509ProcessingFilterTests extends TestCase {
}
public void testWithExistingSecurityContext() throws Exception {
public void testDoesNothingWithExistingSecurityContext() throws Exception {
MockHttpServletRequest request = new MockHttpServletRequest(null, new MockHttpSession());
MockHttpServletResponse response = new MockHttpServletResponse();
FilterChain chain = new MockFilterChain(true);