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: 9adb3dbfae008e03ce177607958925f1b1eac577 $
|
Method Summary |
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target)
|
void |
authenticate()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationRule
public AuthenticationRule(String userName,
String userPassword,
TestUtils testUtils,
org.openqa.selenium.WebDriver driver)
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()
Copyright © 2004-2013 XWiki. All Rights Reserved.