directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1095090 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java
Date Tue, 19 Apr 2011 14:00:54 GMT
Author: elecharny
Date: Tue Apr 19 14:00:54 2011
New Revision: 1095090

URL: http://svn.apache.org/viewvc?rev=1095090&view=rev
Log:
cleanup the code

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java?rev=1095090&r1=1095089&r2=1095090&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/PasswordPolicyTest.java
Tue Apr 19 14:00:54 2011
@@ -303,27 +303,6 @@ public class PasswordPolicyTest extends 
             return null;
         }
 
-        /*
-        CodecControl<? extends Control> ctrl = codec.newControl( control );
-
-        PasswordPolicyDecorator respCtrl = control;
-        respCtrl.setValue( ((PasswordPolicyDecorator)control).getValue() );*/
-        
-        System.out.println( control.getClass().getCanonicalName() );
-        PasswordPolicyDecorator decorator = ((PasswordPolicyDecorator)control);
-        
-        if ( control instanceof org.apache.directory.shared.ldap.extras.controls.ppolicy.PasswordPolicyDecorator
)
-        {
-            decorator = ((PasswordPolicyDecorator)control);
-            PasswordPolicy passwordPolicy = decorator.getDecorated();
-            
-            return passwordPolicy;
-        }
-        else if ( control instanceof org.apache.directory.shared.ldap.extras.controls.ppolicy.PasswordPolicyDecorator
)
-        {
-            return (PasswordPolicy)control;
-        }
-        
         return ((PasswordPolicyDecorator)control).getDecorated();
     }
 }



Mime
View raw message