This commit is contained in:
mali
2022-10-20 16:44:28 +00:00
commit 7af501d8ec
10 changed files with 338 additions and 0 deletions

16
module2/pom.xml Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.sonarqube</groupId>
<artifactId>sonarscanner-maven-aggregate</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>module2</artifactId>
<name>Module 2</name>
</project>

View File

@@ -0,0 +1,16 @@
package com.acme.module2;
public class Module2 {
public void coveredByUnitTest() {
System.out.println("This method is covered by unit test");
}
public void coveredByIntegrationTest() {
System.out.println("This method is covered by integration test");
}
public void uncovered() {
System.out.println("This method is not covered");
}
}

View File

@@ -0,0 +1,11 @@
package com.acme.module2;
import org.junit.Test;
public class Module2Test {
@Test
public void coveredByUnitTest() {
new Module2().coveredByUnitTest();
}
}