diff options
author | Teemu Suo-Anttila <tsuoanttila@users.noreply.github.com> | 2017-11-23 11:38:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-23 11:38:13 +0200 |
commit | dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258 (patch) | |
tree | ea976af7ee7099b1baf4f9249186557b5d82494c /test/bean-api-validation | |
parent | 2fc7554779cb3df2e58dab9057a9b51839e84930 (diff) | |
download | vaadin-framework-dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258.tar.gz vaadin-framework-dbf7da41eb8a311a2c9eb97a42d7dfaa9364b258.zip |
Fix issues from TestBench version upgrade (#10360)
Diffstat (limited to 'test/bean-api-validation')
-rw-r--r-- | test/bean-api-validation/pom.xml | 14 | ||||
-rw-r--r-- | test/bean-api-validation/src/test/java/com/vaadin/data/BeanValidationTest.java | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/test/bean-api-validation/pom.xml b/test/bean-api-validation/pom.xml index c384fd10ef..629861fda2 100644 --- a/test/bean-api-validation/pom.xml +++ b/test/bean-api-validation/pom.xml @@ -9,6 +9,19 @@ </parent> <artifactId>vaadin-test-bean-api-validation</artifactId> <packaging>jar</packaging> + + <dependencies> + <dependency> + <groupId>com.vaadin</groupId> + <artifactId>vaadin-testbench-api</artifactId> + <exclusions> + <exclusion> + <groupId>javax.validation</groupId> + <artifactId>validation-api</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> <build> <plugins> @@ -37,5 +50,4 @@ </plugin> </plugins> </build> - </project> diff --git a/test/bean-api-validation/src/test/java/com/vaadin/data/BeanValidationTest.java b/test/bean-api-validation/src/test/java/com/vaadin/data/BeanValidationTest.java index dd7c158692..ddd42e367f 100644 --- a/test/bean-api-validation/src/test/java/com/vaadin/data/BeanValidationTest.java +++ b/test/bean-api-validation/src/test/java/com/vaadin/data/BeanValidationTest.java @@ -46,7 +46,7 @@ public class BeanValidationTest { public void binderWorksWithoutBeanValidationLib() { try { Class.forName("javax.validation.Validation"); - fail(); + fail("Validation API should not be present"); } catch (ClassNotFoundException ignored) { } |