aboutsummaryrefslogtreecommitdiffstats
path: root/test/bean-impl-validation/src
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-03 12:56:25 +0200
committerHenri Sara <henri.sara@gmail.com>2017-10-03 13:56:25 +0300
commitccad305464af83826de4a4bd25a383360fb356d0 (patch)
treed399448d2910c4cf373e64c690b053740dff43ba /test/bean-impl-validation/src
parent28b52d687dade66154a4fcd545415bf0d01b0a53 (diff)
downloadvaadin-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 'test/bean-impl-validation/src')
-rw-r--r--test/bean-impl-validation/src/test/java/com/vaadin/data/BeanValidationTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/bean-impl-validation/src/test/java/com/vaadin/data/BeanValidationTest.java b/test/bean-impl-validation/src/test/java/com/vaadin/data/BeanValidationTest.java
index a3b2fdc2c0..e495ee279b 100644
--- a/test/bean-impl-validation/src/test/java/com/vaadin/data/BeanValidationTest.java
+++ b/test/bean-impl-validation/src/test/java/com/vaadin/data/BeanValidationTest.java
@@ -15,9 +15,11 @@
*/
package com.vaadin.data;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
import javax.validation.Validation;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.ui.TextField;
@@ -46,7 +48,7 @@ public class BeanValidationTest {
public void binderWorksWithoutBeanValidationImpl() {
// Just to make sure that it's available at the compilation time and in
// runtime
- Assert.assertNotNull(Validation.class);
+ assertNotNull(Validation.class);
Binder<Bean> binder = new Binder<>(Bean.class);
@@ -57,7 +59,7 @@ public class BeanValidationTest {
binder.setBean(bean);
field.setValue("foo");
- Assert.assertEquals(field.getValue(), bean.getProperty());
+ assertEquals(field.getValue(), bean.getProperty());
}
}