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 /compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.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 'compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java')
-rw-r--r-- | compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java b/compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java index f00592af6d..38380483a6 100644 --- a/compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java +++ b/compatibility-server/src/test/java/com/vaadin/tests/server/DeprecatedTest.java @@ -15,11 +15,13 @@ */ package com.vaadin.tests.server; +import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.assertNotNull; + import java.io.File; import java.net.URISyntaxException; import java.util.concurrent.atomic.AtomicInteger; -import org.junit.Assert; import org.junit.Test; /** @@ -40,13 +42,11 @@ public class DeprecatedTest { && !testRoot.equals(new File(entry))) .forEach(cls -> { count.incrementAndGet(); - Assert.assertNotNull( - "Class " + cls - + " is in compatability package and it's not deprecated", + assertNotNull("Class " + cls + + " is in compatability package and it's not deprecated", cls.getAnnotation(Deprecated.class)); }); - Assert.assertNotEquals("Total number of checked classes", 0, - count.get()); + assertNotEquals("Total number of checked classes", 0, count.get()); } } |