geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r799957 - /geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java
Date Sat, 01 Aug 2009 23:11:07 GMT
Author: djencks
Date: Sat Aug  1 23:11:07 2009
New Revision: 799957

URL: http://svn.apache.org/viewvc?rev=799957&view=rev
Log:
GERONIMO-4781 add a test to try to clarify meaning of login module flags vs. login return/exception
results.. one more test

Modified:
    geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java

Modified: geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java?rev=799957&r1=799956&r2=799957&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-security/src/test/java/org/apache/geronimo/security/realm/providers/FlagsMeaningTest.java
Sat Aug  1 23:11:07 2009
@@ -47,6 +47,15 @@
         lc.login();
     }
 
+    public void testSufficientFalseTrue() throws LoginException {
+        Configuration conf = new FixedConfiguration(new AppConfigurationEntry[] {
+                new AppConfigurationEntry(FalseLM.class.getName(), AppConfigurationEntry.LoginModuleControlFlag.SUFFICIENT,
noOptions),
+                new AppConfigurationEntry(TrueLM.class.getName(), AppConfigurationEntry.LoginModuleControlFlag.SUFFICIENT,
noOptions),
+        });
+        LoginContext lc = new LoginContext("foo", null, null, conf);
+        lc.login();
+    }
+
     public void testSufficientExceptionRequiredTrue() throws LoginException {
         Configuration conf = new FixedConfiguration(new AppConfigurationEntry[] {
                 new AppConfigurationEntry(ExceptionLM.class.getName(), AppConfigurationEntry.LoginModuleControlFlag.SUFFICIENT,
noOptions),



Mime
View raw message