Last active
August 29, 2015 14:03
-
-
Save soucekv/0b50b5ebeb0dafa73dd4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static WebArchive prepareArchive() throws Exception { | |
WebArchive war = ShrinkWrap.create(); //parms omitted | |
//add dependency to ShrinkWrap Resolver library | |
GenericArchive mockitoLib = Maven.configureResolver() | |
.resolve("org.mockito:mockito-all:1.8.4") | |
.withTransitivity().asSingle(GenericArchive.class); | |
war.addAsLibraries(mockitoLib); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment