2

I have a Maven multi-project set-up with a parent POM, one library-type jar and several application-jars using this library. Now I'd like to take advantage of this library-type jar's testing facility (especially the API mocking features) in the unit tests of the applications to avoid repeating the same unit test code in all of the applications, which I am doing now. However it seems this is not trivial.

Any of you done this, or any other solutions to suggest to this problem?

[edit] clarification:

If I have applications A, B and library L, and dependencies like this:

A -> L <- B

I would like the test code of above have dependencies correspondingly:

A' -> L' <- B'

So the application's test code could see the library's test code.

Hannes R.
  • 1,379
  • 16
  • 23

0 Answers0