com.osbcp.junitpmdtestwrapper
Class JUnitPMDTestWrapper
java.lang.Object
com.osbcp.junitpmdtestwrapper.JUnitPMDTestWrapper
public abstract class JUnitPMDTestWrapper
- extends java.lang.Object
Contains the logic for the JUnit PMD test wrapper
- Author:
- Christoffer Pettersson, christoffer@christoffer.me
Method Summary |
static void |
run(java.lang.Object testClassInstance,
java.lang.String folderToCheck,
java.lang.String ruleFileName)
Runs the PMD JUnit test wrapper on a specific folder based on a given rule set file in the same folder |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitPMDTestWrapper
public JUnitPMDTestWrapper()
run
public static void run(java.lang.Object testClassInstance,
java.lang.String folderToCheck,
java.lang.String ruleFileName)
throws java.io.IOException
- Runs the PMD JUnit test wrapper on a specific folder based on a given rule set file in the same folder
- Parameters:
testClassInstance
- The JUnit test instancefolderToCheck
- The folder that should be testedruleFileName
- Name of the PMD rule set file that should be located in the same folder
- Throws:
java.io.IOException
- If any error occur