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 /server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.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 'server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java')
-rw-r--r-- | server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java b/server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java index c090d86efe..0c89d53051 100644 --- a/server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java +++ b/server/src/test/java/com/vaadin/ui/TextAreaConstructorTest.java @@ -15,29 +15,31 @@ */ package com.vaadin.ui; -import org.junit.Assert; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; + import org.junit.Test; import org.mockito.Mockito; import com.vaadin.data.HasValue; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.verify; public class TextAreaConstructorTest { @Test public void initiallyEmpty() { TextArea textArea = new TextArea(); - Assert.assertTrue(textArea.isEmpty()); + assertTrue(textArea.isEmpty()); } @Test public void testValueConstructor_emptyAfterClear() { TextArea textArea = new TextArea(null, "foobar"); - Assert.assertFalse(textArea.isEmpty()); + assertFalse(textArea.isEmpty()); textArea.clear(); - Assert.assertTrue(textArea.isEmpty()); + assertTrue(textArea.isEmpty()); } @Test |