diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-11-23 11:38:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 11:38:13 +0200 |
commit | dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258 (patch) | |
tree | ea976af7ee7099b1baf4f9249186557b5d82494c /test/servlet-containers | |
parent | 2fc7554779cb3df2e58dab9057a9b51839e84930 (diff) | |
download | vaadin-framework-dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258.tar.gz vaadin-framework-dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258.zip |
Fix issues from TestBench version upgrade (#10360)
Diffstat (limited to 'test/servlet-containers')
-rw-r--r-- | test/servlet-containers/karaf/karaf-run/src/test/java/com/vaadin/test/osgi/KarafIntegrationIT.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/servlet-containers/karaf/karaf-run/src/test/java/com/vaadin/test/osgi/KarafIntegrationIT.java b/test/servlet-containers/karaf/karaf-run/src/test/java/com/vaadin/test/osgi/KarafIntegrationIT.java index 6cede7b3af..d9e848eeb5 100644 --- a/test/servlet-containers/karaf/karaf-run/src/test/java/com/vaadin/test/osgi/KarafIntegrationIT.java +++ b/test/servlet-containers/karaf/karaf-run/src/test/java/com/vaadin/test/osgi/KarafIntegrationIT.java @@ -17,6 +17,8 @@ package com.vaadin.test.osgi; import static org.junit.Assert.assertEquals; +import java.util.function.Function; + import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -26,7 +28,6 @@ import org.openqa.selenium.WebElement; import org.openqa.selenium.phantomjs.PhantomJSDriver; import org.openqa.selenium.support.ui.WebDriverWait; -import com.google.common.base.Predicate; import com.vaadin.testbench.TestBenchTestCase; import com.vaadin.testbench.elements.TextFieldElement; @@ -52,9 +53,8 @@ public class KarafIntegrationIT extends TestBenchTestCase { private void runBasicTest(String app1Url, String text) { getDriver().navigate().to(app1Url); - Predicate<WebDriver> isTrue = driver -> isElementPresent( - TextFieldElement.class); - new WebDriverWait(getDriver(), 5000).until(isTrue); + new WebDriverWait(getDriver(), 5000) + .until(driver -> isElementPresent(TextFieldElement.class)); getDriver().findElement(By.className("v-textfield")).sendKeys(text); getDriver().findElement(By.className("v-button")).click(); String foundText = getDriver().findElement(By.className("v-label")) |