Skip to content

Commit

Permalink
adding testcase and pit
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgkalkman committed Nov 29, 2018
1 parent 3d41ae8 commit fd84044
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.4.3</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand All @@ -78,6 +83,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
</plugin>
</plugins>
</reporting>
</project>
19 changes: 19 additions & 0 deletions src/test/resources/org/taHjaj/wo/pmdplus/dup/xml/Dup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,25 @@ class X {
x();
return "done";
}
}
]]></code>
</test-code>
<test-code>
<description><![CDATA[
adding a string to a list twice
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
import java.util.ArrayList;
import java.util.List;
public class PmdPlusTest {
private List<String> x = new ArrayList<>();
public void test() {
x.add( "a");
x.add( "a");
}
}
]]></code>
</test-code>
Expand Down

0 comments on commit fd84044

Please sign in to comment.