Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11830

Provide a basic MockPrincipalManager and MockUserManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Testing JCR Mock 1.6.8
    • Testing
    • None

    Description

      To assist in testing code paths that interact with the PrincipalManager and/or UserManager, the MockSession should provide basic mock implementations of those APIs.

      Expected:

      1. A new MockUserManager provides a basic implementation of the UserManager interface
      2. A new MockPrincipalManager provides a basic implementation of the PrincipalManager interface
      3. MockSession should implement JackrabbitSession
      4. MockSession#getUserManager returns an instance of MockUserManager
      5. MockSession#getPrincipalManager returns an instance of MockPrincipalManager

       

      Attachments

        Issue Links

          Activity

            People

              enorman Eric Norman
              enorman Eric Norman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: