Class DefaultMethodRules
java.lang.Object
com.atlassian.confluence.webdriver.rules.DefaultMethodRules
- All Implemented Interfaces:
org.junit.rules.TestRule
Standard RuleChain to run in a webdriver test. This is a slightly modified version of
DefaultProductContextRules.ForMethod. It includes
VisitNoopAndCancelAlertsRule and excludes WindowSizeRule-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMethodRules(com.atlassian.webdriver.testing.rule.IgnoreBrowserRule ignoreBrowserRule, com.atlassian.webdriver.testing.rule.SessionCleanupRule sessionCleanupRule, VisitNoopAndCancelAlertsRule visitNoopAndCancelAlertsRule, CancelAnyAlert cancelAnyAlert, NoUrlLoggingWebDriverScreenshotRule webDriverScreenshotRule, com.atlassian.webdriver.testing.rule.LogPageSourceRule logPageSourceRule, LogTimeRule logTimeRule, BrowserUserAgentLoggingRule browserUserAgentLoggingRule) -
Method Summary
Modifier and TypeMethodDescriptionorg.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
-
Constructor Details
-
DefaultMethodRules
@Inject public DefaultMethodRules(com.atlassian.webdriver.testing.rule.IgnoreBrowserRule ignoreBrowserRule, com.atlassian.webdriver.testing.rule.SessionCleanupRule sessionCleanupRule, VisitNoopAndCancelAlertsRule visitNoopAndCancelAlertsRule, CancelAnyAlert cancelAnyAlert, NoUrlLoggingWebDriverScreenshotRule webDriverScreenshotRule, com.atlassian.webdriver.testing.rule.LogPageSourceRule logPageSourceRule, LogTimeRule logTimeRule, BrowserUserAgentLoggingRule browserUserAgentLoggingRule)
-
-
Method Details
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) - Specified by:
applyin interfaceorg.junit.rules.TestRule
-