Shared test code in multi-project Maven Java environment -


i have maven multi-project set-up parent pom, 1 library-type jar , several application-jars using library. i'd take advantage of library-type jar's testing facility (especially api mocking features) in unit tests of applications avoid repeating same unit test code in of applications, doing now. seems not trivial.

any of done this, or other solutions suggest problem?

[edit] clarification:

if have applications a, b , library l, , dependencies this:

a -> l <- b 

i test code of above have dependencies correspondingly:

a' -> l' <- b' 

so application's test code see library's test code.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -