diff options
author | rn509j <rn509j@att.com> | 2017-10-01 21:36:35 -0400 |
---|---|---|
committer | rn509j <rn509j@att.com> | 2017-10-01 22:26:36 -0400 |
commit | fd8f9858fe2c7dfdee55a1e136a63fb01d1a3162 (patch) | |
tree | a94e58e1bac32562d0cb30f65663563a5d783d13 /pom.xml | |
parent | 2881443ed939d6d3c1a55719cca95ee9e7483165 (diff) |
commiting code for test coveragev1.0.01.0.0-ONAP1.0.0-Amsterdam
changed testcases
DMAAP-149
Signed-off-by: rn509j <rn509j@att.com>
Change-Id: I4dfeb3df44f85bfbd3a10ec1659c8618e31a10fb
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 80 |
1 files changed, 58 insertions, 22 deletions
@@ -273,6 +273,42 @@ <artifactId>gson</artifactId> <version>2.8.0</version> </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-all</artifactId> + <version>1.9.5</version> + <scope>test</scope> + </dependency> + + + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-core</artifactId> + <version>2.8.5</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-api-mockito</artifactId> + <version>1.5.6</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-module-junit4</artifactId> + <version>1.5.6</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.powermock</groupId> + <artifactId>powermock-module-junit4-rule</artifactId> + <version>1.5.6</version> + <scope>test</scope> + </dependency> + </dependencies> <build> <finalName>DMaaP</finalName> @@ -344,8 +380,8 @@ <version>2.12.4</version> <configuration> <excludes> - <!-- exclude until junits updated - <exclude>**/DME2*.java</exclude> --> + <!-- exclude until junits updated + <exclude>**/DME2*.java</exclude> --> </excludes> <!-- <skipTests>true</skipTests> --> </configuration> @@ -361,13 +397,13 @@ </formats> </configuration> </plugin> - <plugin> + <!-- <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${jacoco.version}</version> <configuration> - <!-- Note: This exclusion list should match <sonar.exclusions> - property above --> + Note: This exclusion list should match <sonar.exclusions> + property above <excludes> <exclude>**/gen/**</exclude> <exclude>**/generated-sources/**</exclude> @@ -376,29 +412,29 @@ </excludes> </configuration> <executions> - <!-- + Prepares the property pointing to the JaCoCo runtime agent which is passed as VM argument when Maven the Surefire plugin is executed. - --> + <execution> <id>pre-unit-test</id> <goals> <goal>prepare-agent</goal> </goals> <configuration> - <!-- Sets the path to the file which contains the execution data. --> + Sets the path to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-ut.exec</destFile> - <!-- + Sets the name of the property containing the settings for JaCoCo runtime agent. - --> + <propertyName>surefireArgLine</propertyName> </configuration> </execution> - <!-- + Ensures that the code coverage report for unit tests is created after unit tests have been run. - --> + <execution> <id>post-unit-test</id> <phase>test</phase> @@ -406,9 +442,9 @@ <goal>report</goal> </goals> <configuration> - <!-- Sets the path to the file which contains the execution data. --> + Sets the path to the file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-ut.exec</dataFile> - <!-- Sets the output directory for the code coverage report. --> + Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory> </configuration> </execution> @@ -419,19 +455,19 @@ <goal>prepare-agent</goal> </goals> <configuration> - <!-- Sets the path to the file which contains the execution data. --> + Sets the path to the file which contains the execution data. <destFile>${project.build.directory}/code-coverage/jacoco-it.exec</destFile> - <!-- + Sets the name of the property containing the settings for JaCoCo runtime agent. - --> + <propertyName>failsafeArgLine</propertyName> </configuration> </execution> - <!-- + Ensures that the code coverage report for integration tests after integration tests have been run. - --> + <execution> <id>post-integration-test</id> <phase>post-integration-test</phase> @@ -439,15 +475,15 @@ <goal>report</goal> </goals> <configuration> - <!-- Sets the path to the file which contains the execution data. --> + Sets the path to the file which contains the execution data. <dataFile>${project.build.directory}/code-coverage/jacoco-it.exec</dataFile> - <!-- Sets the output directory for the code coverage report. --> + Sets the output directory for the code coverage report. <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory> </configuration> </execution> </executions> </plugin> - </plugins> + --></plugins> </build> <!-- <profiles> <profile> <id>jenkins</id> <activation> <property> <name>env.BUILD_NUMBER</name> |