com.osbcp.junitpmdtestwrapper
Class JUnitPMDTestWrapper

java.lang.Object
  extended by 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

Constructor Summary
JUnitPMDTestWrapper()
           
 
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
 

Constructor Detail

JUnitPMDTestWrapper

public JUnitPMDTestWrapper()
Method Detail

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 instance
folderToCheck - The folder that should be tested
ruleFileName - Name of the PMD rule set file that should be located in the same folder
Throws:
java.io.IOException - If any error occur