From ccad305464af83826de4a4bd25a383360fb356d0 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Tue, 3 Oct 2017 12:56:25 +0200 Subject: Use static import of Assert in tests (#10126) Also removes dependency on junit.framework.TestCase . --- .../java/com/vaadin/test/dependencyrewrite/DependencyFilterIT.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/dependency-rewrite') diff --git a/test/dependency-rewrite/src/test/java/com/vaadin/test/dependencyrewrite/DependencyFilterIT.java b/test/dependency-rewrite/src/test/java/com/vaadin/test/dependencyrewrite/DependencyFilterIT.java index 5256def3f5..09f0d333a2 100644 --- a/test/dependency-rewrite/src/test/java/com/vaadin/test/dependencyrewrite/DependencyFilterIT.java +++ b/test/dependency-rewrite/src/test/java/com/vaadin/test/dependencyrewrite/DependencyFilterIT.java @@ -1,6 +1,7 @@ package com.vaadin.test.dependencyrewrite; -import org.junit.Assert; +import static org.junit.Assert.assertEquals; + import org.junit.Test; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.phantomjs.PhantomJSDriver; @@ -13,7 +14,7 @@ public class DependencyFilterIT extends TestBenchTestCase { public void dynamicallyAddedResources() { setDriver(new PhantomJSDriver()); getDriver().get("http://localhost:8080/dynamic/"); - Assert.assertEquals(1L, ((JavascriptExecutor) getDriver()) + assertEquals(1L, ((JavascriptExecutor) getDriver()) .executeScript("return window.jqueryLoaded")); } @@ -22,7 +23,7 @@ public class DependencyFilterIT extends TestBenchTestCase { setDriver(new PhantomJSDriver()); getDriver().get("http://localhost:8080/initial/"); // 2 because of https://github.com/vaadin/framework/issues/9181 - Assert.assertEquals(2L, ((JavascriptExecutor) getDriver()) + assertEquals(2L, ((JavascriptExecutor) getDriver()) .executeScript("return window.jqueryLoaded")); } -- cgit v1.2.3