From 9f62da7d1ce6523c5485decacdd2d15dad9c8fea Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Sat, 12 Mar 2005 21:20:43 +0000 Subject: [PATCH] Better test method names. --- .../acegisecurity/ui/x509/X509ProcessingFilterTests.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java b/core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java index 99153b41c9..e10093b0b6 100644 --- a/core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java +++ b/core/src/test/java/org/acegisecurity/ui/x509/X509ProcessingFilterTests.java @@ -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);