29 Feb 2012 14:27
2.6.0-RC2 depends upon junit:junit-dep:4.4, which doesn't include org.junit.runners.BlockJUnit4ClassRunner
Hi,
I'm usingĀ 2.6.0-RC2, sourced from a Maven repository. I've noticed
that org.jmock.integration.junit4.JMock extends
org.junit.runners.BlockJUnit4ClassRunner, which is not present in the
version of JUnit that JMock depends upon.
The `jmock-junit4' POM file contains:
<dependency>
<groupId>junit</groupId>
<artifactId>junit-dep</artifactId>
<version>4.4</version>
</dependency>
As a result, when I attempt to execute test classes that have
` <at> RunWith(JMock.class)', I get errors complaining about the missing
BlockJUnit4ClassRunner class. To solve this, I've had to add a
dependency on a more modern version of JUnit to my project POM, and
specifically exclude this version of junit-dep.
So this:
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>2.6.0-RC2</version>
<scope>test</scope>
</dependency>
(Continue reading)
RSS Feed