Package org.xwiki.test.ui
Class AuthenticationRule
- java.lang.Object
-
- org.xwiki.test.ui.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 Summary
Constructors Constructor Description AuthenticationRule(String userName, String userPassword, boolean isAdvanced, TestUtils util)AuthenticationRule(String userName, String userPassword, TestUtils util)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)voidauthenticate()
-
-
-
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:
applyin interfaceorg.junit.rules.MethodRule
-
authenticate
public void authenticate()
-
-