Better test method names.
This commit is contained in:
parent
0a4fc1731a
commit
9f62da7d1c
|
@ -26,7 +26,10 @@ import javax.servlet.ServletException;
|
||||||
import java.security.cert.X509Certificate;
|
import java.security.cert.X509Certificate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Tests {@link net.sf.acegisecurity.ui.x509.X509ProcessingFilter}.
|
||||||
|
*
|
||||||
* @author Luke Taylor
|
* @author Luke Taylor
|
||||||
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
public class X509ProcessingFilterTests extends TestCase {
|
public class X509ProcessingFilterTests extends TestCase {
|
||||||
//~ Constructors ===========================================================
|
//~ Constructors ===========================================================
|
||||||
|
@ -147,7 +150,7 @@ public class X509ProcessingFilterTests extends TestCase {
|
||||||
assertNull(result);
|
assertNull(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testWithNoCertificate() throws Exception {
|
public void testAuthenticationIsNullWithNoCertificate() throws Exception {
|
||||||
MockHttpSession session = new MockHttpSession();
|
MockHttpSession session = new MockHttpSession();
|
||||||
MockHttpServletRequest request = new MockHttpServletRequest(null, session);
|
MockHttpServletRequest request = new MockHttpServletRequest(null, session);
|
||||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
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());
|
MockHttpServletRequest request = new MockHttpServletRequest(null, new MockHttpSession());
|
||||||
MockHttpServletResponse response = new MockHttpServletResponse();
|
MockHttpServletResponse response = new MockHttpServletResponse();
|
||||||
FilterChain chain = new MockFilterChain(true);
|
FilterChain chain = new MockFilterChain(true);
|
||||||
|
|
Loading…
Reference in New Issue