aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java')
-rw-r--r--server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java b/server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java
index 91e7e89627..0b70006965 100644
--- a/server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java
+++ b/server/src/test/java/com/vaadin/tests/design/FieldNameWhichConflictsWithGettersTest.java
@@ -16,6 +16,8 @@
package com.vaadin.tests.design;
import static java.nio.charset.StandardCharsets.UTF_8;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
@@ -23,7 +25,6 @@ import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.annotations.DesignRoot;
@@ -48,8 +49,8 @@ public class FieldNameWhichConflictsWithGettersTest {
@Test
public void readWithConflictingFields() {
MyVerticalLayout v = new MyVerticalLayout();
- Assert.assertNotNull(v.caption);
- Assert.assertNotNull(v.description);
+ assertNotNull(v.caption);
+ assertNotNull(v.description);
}
@Test
@@ -72,13 +73,13 @@ public class FieldNameWhichConflictsWithGettersTest {
Document doc = Jsoup.parse(str);
Element body = doc.body();
Element captionElement = body.getElementById("caption");
- Assert.assertNotNull(captionElement);
- Assert.assertEquals("vaadin-label", captionElement.tagName());
+ assertNotNull(captionElement);
+ assertEquals("vaadin-label", captionElement.tagName());
Element descriptionElement = captionElement.nextElementSibling();
- Assert.assertNotNull(descriptionElement);
- Assert.assertEquals("vaadin-text-field", descriptionElement.tagName());
- Assert.assertEquals("description", descriptionElement.attr("_id"));
+ assertNotNull(descriptionElement);
+ assertEquals("vaadin-text-field", descriptionElement.tagName());
+ assertEquals("description", descriptionElement.attr("_id"));
}
}