ソースを参照

SEC-592

fixed failing test due to thinking a null value should be provided.
Scott Battaglia 18 年 前
コミット
87a864619d

+ 2 - 0
core/src/test/java/org/springframework/security/providers/cas/CasAuthenticationProviderTests.java

@@ -239,6 +239,8 @@ public class CasAuthenticationProviderTests extends TestCase {
     public void testDetectsMissingStatelessTicketCache()
         throws Exception {
         CasAuthenticationProvider cap = new CasAuthenticationProvider();
+        // set this explicitly to null to test failure
+        cap.setStatelessTicketCache(null);
         cap.setCasAuthoritiesPopulator(new MockAuthoritiesPopulator());
         cap.setCasProxyDecider(new MockProxyDecider());
         cap.setKey("qwerty");