Package com.atlassian.jira.functest.rule
Class WebTesterRule
java.lang.Object
com.atlassian.jira.functest.rule.WebTesterRule
- All Implemented Interfaces:
com.google.inject.Module,Supplier<net.sourceforge.jwebunit.WebTester>,org.junit.rules.TestRule
- Direct Known Subclasses:
RemoteWebTesterRule
public class WebTesterRule
extends Object
implements org.junit.rules.TestRule, com.google.inject.Module, Supplier<net.sourceforge.jwebunit.WebTester>
Rule to initialize HtmlUnit test for JIRA func tests.
- Since:
- v6.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LocatorFactoryUse this field to access theLocatorFactoryin play -
Constructor Summary
ConstructorsConstructorDescriptionWebTesterRule(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<FuncTestWebClientListener> webClientListenerSupplier) -
Method Summary
-
Field Details
-
locator
Use this field to access theLocatorFactoryin play
-
-
Constructor Details
-
WebTesterRule
public WebTesterRule(Supplier<JIRAEnvironmentData> environmentDataSupplier, Supplier<FuncTestWebClientListener> webClientListenerSupplier)
-
-
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
-
get
public net.sourceforge.jwebunit.WebTester get() -
configure
public void configure(com.google.inject.Binder binder) - Specified by:
configurein interfacecom.google.inject.Module
-