Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modify the pom.xml file by adding new entries to the <dependencies> section. The following entries include all the required libraries:

Code Block
<dependency>
    	<groupId>junit</groupId>
    	<artifactId>junit</artifactId>
    	<version>4.11<12</version>
    	<scope>test</scope>
</dependency>


<dependency> 
	<groupId>pl<groupId>org.pragmatists<mockito</groupId>  
	<artifactId>JUnitParams<<artifactId>mockito-all</artifactId>
    	<version>1.010.6<19</version>
    	<scope>test</scope>
</dependency>
<dependency>
	<groupId>com.liferay</groupId>
	<artifactId>org.powermock.modules.junit4</artifactId>
	<version>1.5.6.LIFERAY-PATCHED-1</version>
</dependency>

<dependency>
    <groupId>org.mockito</groupId>  
	<artifactId>mockito-all</artifactId>
    <version>1.9
<dependency>
	<groupId>org.powermock</groupId>
	<artifactId>powermock-core</artifactId>
	<version>1.6.5</version>
</dependency>

<dependency>
	<groupId>org.powermock</groupId>
	<artifactId>powermock-api-mockito</artifactId>
	<version>1.6.5</version>
    	<scope>test</scope>
</dependency>

<dependency>
    	<groupId>org.powermock</groupId>
  	<artifactId>powermock-mockitoapi-release-full<support</artifactId>
    	<version>1.56.5</version>
    <type>pom</type>
    <scope>test</scope>
</dependency>
<dependency>
	<groupId>pl.pragmatists</groupId>
	<artifactId>JUnitParams</artifactId>
	<version>1.0.6</version>
</dependency>

Adding Dependencies in Gradle

Modify the build.gradle file by adding new entries to the dependencies section. The following entries include all the required libraries:

Code Block
testCompile group: 'junit', name: 'junit', version: '4.11'org.powermock:powermock-module-junit4:1.6.5'
testCompile group: 'pl.pragmatists', name: 'JUnitParams', version: '1.0.6'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
testCompile group: 'org.powermock', name: 'powermock-mockito-release-full', version: '1.5.5', ext: 'pomorg.powermock:powermock-api-mockito:1.6.5'
testCompile 'junit:junit:4.11'
testCompile 'pl.pragmatists:JUnitParams:1.0.6'

Adding Dependencies in Ant

...