aboutsummaryrefslogtreecommitdiffstats
path: root/compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java')
-rw-r--r--compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java b/compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java
index 23b6f9f593..4d0dd17a83 100644
--- a/compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java
+++ b/compatibility-server/src/test/java/com/vaadin/v7/ui/TextAreaTest.java
@@ -15,7 +15,9 @@
*/
package com.vaadin.v7.ui;
-import org.junit.Assert;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
import org.junit.Test;
import com.vaadin.v7.data.util.ObjectProperty;
@@ -24,24 +26,24 @@ public class TextAreaTest {
@Test
public void initiallyEmpty() {
TextArea tf = new TextArea();
- Assert.assertTrue(tf.isEmpty());
+ assertTrue(tf.isEmpty());
}
@Test
public void emptyAfterClearUsingPDS() {
TextArea tf = new TextArea(new ObjectProperty<String>("foo"));
- Assert.assertFalse(tf.isEmpty());
+ assertFalse(tf.isEmpty());
tf.clear();
- Assert.assertTrue(tf.isEmpty());
+ assertTrue(tf.isEmpty());
}
@Test
public void emptyAfterClear() {
TextArea tf = new TextArea();
tf.setValue("foobar");
- Assert.assertFalse(tf.isEmpty());
+ assertFalse(tf.isEmpty());
tf.clear();
- Assert.assertTrue(tf.isEmpty());
+ assertTrue(tf.isEmpty());
}
}