You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can manually modify your build system to ensure that all the required dependencies are available.

Adding Dependencies in Maven

Modify the pom.xml file by adding the following entry to the <dependencies> section:

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
    <scope>test</scope>
</dependency>

<dependency> 
	<groupId>pl.pragmatists</groupId>  
	<artifactId>JUnitParams</artifactId>
    <version>1.0.6</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>org.mockito</groupId>  
	<artifactId>mockito-all</artifactId>
    <version>1.9.5</version>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>org.powermock</groupId>
  	<artifactId>powermock-mockito-release-full</artifactId>
    <version>1.5.5</version>
    <type>pom</type>
    <scope>test</scope>
</dependency>




Adding Dependencies in Gradle



Adding Dependencies in Ant

  • No labels