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 . --- .../vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'uitest/src/test/java/com/vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java') diff --git a/uitest/src/test/java/com/vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java b/uitest/src/test/java/com/vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java index 5ce565230d..39d9cc673d 100644 --- a/uitest/src/test/java/com/vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java +++ b/uitest/src/test/java/com/vaadin/tests/layouts/VerticalLayoutRemoveComponentTest.java @@ -15,7 +15,8 @@ */ package com.vaadin.tests.layouts; -import org.junit.Assert; +import static org.junit.Assert.assertEquals; + import org.junit.Test; import com.vaadin.testbench.elements.ButtonElement; @@ -41,8 +42,7 @@ public class VerticalLayoutRemoveComponentTest Long mutationEvents = (Long) executeScript( "return document.mutationEventCount;"); - Assert.assertEquals( - "Parent should only have one mutation event (remove slot)", 1, - mutationEvents.intValue()); + assertEquals("Parent should only have one mutation event (remove slot)", + 1, mutationEvents.intValue()); } } -- cgit v1.2.3