Class AuthenticationRule

  • All Implemented Interfaces:
    org.junit.rules.MethodRule
    Direct Known Subclasses:
    AdminAuthenticationRule, SuperAdminAuthenticationRule

    public class AuthenticationRule
    extends Object
    implements org.junit.rules.MethodRule
    Authenticates a user in the wiki before the test starts.
    Since:
    5.1M1
    Version:
    $Id: 7c852682d03bc94c96ab7363266cd841f99a498b $
    • Constructor Detail

      • AuthenticationRule

        public AuthenticationRule​(String userName,
                                  String userPassword,
                                  TestUtils util)
      • AuthenticationRule

        public AuthenticationRule​(String userName,
                                  String userPassword,
                                  boolean isAdvanced,
                                  TestUtils util)
        Since:
        9.3-rc-1
    • Method Detail

      • apply

        public org.junit.runners.model.Statement apply​(org.junit.runners.model.Statement base,
                                                       org.junit.runners.model.FrameworkMethod method,
                                                       Object target)
        Specified by:
        apply in interface org.junit.rules.MethodRule
      • authenticate

        public void authenticate()