Hi Mickael,This is https://bugs.eclipse.org/bugs/show_bug.cgi?id=404346Today we started testing JBT 4.1.0.Alpha2 and noticed that this is quite a big problem for us. Most of our tests fail with something like this:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NoSuchMethodError: org.hamcrest.core.IsAnything.any(Ljava/lang/Class;)Lorg/hamcrest/Matcher;)at org.eclipse.swt.SWT.error(SWT.java:4392)at org.eclipse.swt.SWT.error(SWT.java:4307)
That's because Kepler M6 ships Junit 4.10 which depends on Hamcrest 1.3. SWTBot builds against Hamcrest 1.1 and Hamcrest has API breaks between 1.1 and 1.3.Right now we don't know how to overcome this in automated jenkins test runs - swtbot always takes the newest version of hamcrest from the kepler platform, so even adding older hamcrest repo wouldn't help here. Do you have any suggestion for us? :)
Cf bug comments.Also, what will be the fix in SWTBot? If you fix it to work with the new hamcrest, it won't work with the older version, right? So this new swtbot will not be able to work with Juno with older hamcrest then?