[ 
https://issues.apache.org/jira/browse/DIRSERVER-1936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847606#comment-13847606
 ] 

lucas theisen commented on DIRSERVER-1936:
------------------------------------------

Attached you will find my implementation.  Here is an example usage:

{code:java}
    @Test
    @ApplyPasswordPolicy(
            pwdMustChange = true,
            pwdMinAge = 5,
            pwdCheckQuality = CheckQualityEnum.CHECK_ACCEPT )
    public void testMinAge() throws LdapException {
        ...
    }
{code}

> Annotation based integration of password policy.
> ------------------------------------------------
>
>                 Key: DIRSERVER-1936
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1936
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 2.0.0-M16
>            Reporter: lucas theisen
>            Priority: Trivial
>
> For my own unit testing purposes, I have added some additional annotations to 
> add password policies via annotations.  See attached classes.  It makes for 
> cleaner tests with more obvious settings.  You may or may not want to 
> integrate this approach, but I thought i would offer.



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to