[java-identity-provider COMMIT] /trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthCh...

noreply at shibboleth.net noreply at shibboleth.net
Fri Aug 2 10:11:21 EDT 2013


Author: scantor
Date: Fri Aug  2 10:11:20 2013
New Revision: 4651

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=4651&view=rev
Log:
Fix failing test.

Modified:
    trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthChallengeTest.java

Modified: trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthChallengeTest.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthChallengeTest.java?rev=4651&r1=4650&r2=4651&view=diff
==============================================================================
--- trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthChallengeTest.java (original)
+++ trunk/idp-authn-impl/src/test/java/net/shibboleth/idp/authn/impl/SendHTTPBasicAuthChallengeTest.java Fri Aug  2 10:11:20 2013
@@ -35,10 +35,11 @@
         super.setUp();
         
         action = new SendHTTPBasicAuthChallenge();
-        action.initialize();
     }
     
     @Test public void testNoServlet() throws Exception {
+        action.initialize();
+        
         action.execute(prc);
         
         ActionTestingSupport.assertEvent(prc, EventIds.INVALID_PROFILE_CTX);
@@ -47,6 +48,7 @@
     @Test public void testDefault() throws Exception {
         MockHttpServletResponse response = new MockHttpServletResponse();
         prc.setHttpResponse(response);
+        action.initialize();
         
         action.execute(prc);
         ActionTestingSupport.assertProceedEvent(prc);
@@ -58,6 +60,7 @@
         MockHttpServletResponse response = new MockHttpServletResponse();
         prc.setHttpResponse(response);
         action.setRealm("foo");
+        action.initialize();
         
         action.execute(prc);
         ActionTestingSupport.assertProceedEvent(prc);



More information about the commits mailing list