From 8b2de181c37ee855608153fdff9a58474bf945cc Mon Sep 17 00:00:00 2001 From: John Ahlroos Date: Wed, 28 Sep 2016 13:52:11 +0300 Subject: [PATCH] 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/ Reapplying after dependency leaking from root project to bom module has been fixed. Change-Id: I0f2f368ccc6acb303f693aa34ace9e893ab7b573 --- 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 e82cbac4a4..6848b88c8b 100644 --- a/pom.xml +++ b/pom.xml @@ -161,6 +161,12 @@ junit junit 4.12 + + + hamcrest-core + org.hamcrest + + org.easymock @@ -199,8 +205,14 @@ org.mockito - mockito-all + mockito-core 1.9.5 + + + hamcrest-core + org.hamcrest + + org.hamcrest @@ -274,7 +286,7 @@ org.mockito - mockito-all + mockito-core test -- 2.39.5