osdir.com

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Artemis Junit without Maven


On Tue, Dec 11, 2018 at 4:18 PM Eric Song <eric.song@xxxxxxxxxxxxx> wrote:

> Hello,
>
> I'm attempting to get Artemis's JUnit testing set up by using the
> EmbeddedActiveMQResource. However, I am using SCons instead of Maven, and
> am having trouble with the dependencies. After importing the .jar for
> artemis-junit and all of its compile dependencies, I get a
>
> java.lang.NoClassDefFoundError: org/junit/rules/ExternalResource
>
> I have a junit jar already in my classpath, and my other junit tests work
> properly. Is there a shaded jar or some other dependency that I am missing?
>

Artemis uses junit 4.11. What version of the jar do you use? (I don't think
that could be the problem, just that I know Artemis uses an unusual version
of junit, so in case...)

https://mvnrepository.com/artifact/junit/junit/4.11
-- 
Mit freundlichen Grüßen / Kind regards
Jiri Daněk