package org.fluentlenium.core.conditions; import org.fluentlenium.core.FluentDriver; import org.fluentlenium.core.components.DefaultComponentInstantiator; import org.fluentlenium.core.domain.FluentWebElement; import org.junit.Before; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.openqa.selenium.WebElement; @RunWith(MockitoJUnitRunner.class) abstract class AbstractFluentListConditionsTest { //NOPMD AbstractClassWithoutAbstractMethod @Mock protected WebElement webElement1; @Mock protected WebElement webElement2; @Mock protected WebElement webElement3; @Mock protected FluentDriver fluentDriver; protected FluentWebElement fluentWebElement1; protected FluentWebElement fluentWebElement2; protected FluentWebElement fluentWebElement3; @Before public void before() { fluentWebElement1 = new FluentWebElement(webElement1, fluentDriver, new DefaultComponentInstantiator(fluentDriver)); fluentWebElement2 = new FluentWebElement(webElement2, fluentDriver, new DefaultComponentInstantiator(fluentDriver)); fluentWebElement3 = new FluentWebElement(webElement3, fluentDriver, new DefaultComponentInstantiator(fluentDriver)); } }