From 2ae14ad9affca86448ac1003280b7852354d8a6b Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Wed, 28 Sep 2016 13:52:11 +0300 Subject: Fix Mockito/Hamcrest build classpath conflict * Fixes issue with Mockito classes not found on the vaadin-client test classpath * Fixes Mockito/Hamcrest dependency conflict described in https://tedvinke.wordpress.com/2013/12/17/mixing-junit-hamcrest-and-mockito-explaining-nosuchmethoderror/ Change-Id: I946c464118e3b9365bb8da4fb337fd45e6073f5e --- client/pom.xml | 5 +++++ pom.xml | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index ca6009a007..53a497b183 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -41,6 +41,11 @@ com.google.gwt gwt-elemental + + + org.mockito + mockito-core + diff --git a/pom.xml b/pom.xml index 0092f32b63..f25f81fbaf 100644 --- a/pom.xml +++ b/pom.xml @@ -183,6 +183,12 @@ junit junit 4.12 + + + hamcrest-core + org.hamcrest + + org.easymock @@ -221,8 +227,14 @@ org.mockito - mockito-all + mockito-core 1.9.5 + + + hamcrest-core + org.hamcrest + + org.hamcrest @@ -291,7 +303,7 @@ org.mockito - mockito-all + mockito-core test -- cgit v1.2.3