diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-03 12:56:25 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-03 13:56:25 +0300 |
commit | ccad305464af83826de4a4bd25a383360fb356d0 (patch) | |
tree | d399448d2910c4cf373e64c690b053740dff43ba /uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java | |
parent | 28b52d687dade66154a4fcd545415bf0d01b0a53 (diff) | |
download | vaadin-framework-ccad305464af83826de4a4bd25a383360fb356d0.tar.gz vaadin-framework-ccad305464af83826de4a4bd25a383360fb356d0.zip |
Use static import of Assert in tests (#10126)
Also removes dependency on junit.framework.TestCase .
Diffstat (limited to 'uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java b/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java index 64b999b7d5..a5fe6e96f3 100644 --- a/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java +++ b/uitest/src/test/java/com/vaadin/tests/application/MissingHierarchyDetectionTest.java @@ -15,7 +15,9 @@ */ package com.vaadin.tests.application; -import org.junit.Assert; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; + import org.junit.Test; import org.openqa.selenium.By; @@ -28,18 +30,18 @@ public class MissingHierarchyDetectionTest extends SingleBrowserTest { public void testMissingHierarchyDetection() { openTestURL(); - Assert.assertTrue(isElementPresent(By.id("label"))); + assertTrue(isElementPresent(By.id("label"))); ButtonElement toggleProperly = $(ButtonElement.class) .caption("Toggle properly").first(); toggleProperly.click(); assertNoSystemNotifications(); - Assert.assertFalse(isElementPresent(By.id("label"))); + assertFalse(isElementPresent(By.id("label"))); toggleProperly.click(); assertNoSystemNotifications(); - Assert.assertTrue(isElementPresent(LabelElement.class)); + assertTrue(isElementPresent(LabelElement.class)); ButtonElement toggleImproperly = $(ButtonElement.class) .caption("Toggle improperly").first(); |