com.osbcp.junitcheckstyletestwrapper
Class JUnitCheckstyleTestWrapper

java.lang.Object
  extended by com.osbcp.junitcheckstyletestwrapper.JUnitCheckstyleTestWrapper

public abstract class JUnitCheckstyleTestWrapper
extends java.lang.Object

Contains the logic for the JUnit Checkstyle test wrapper

Author:
Christoffer Pettersson, christoffer@christoffer.me

Constructor Summary
JUnitCheckstyleTestWrapper()
           
 
Method Summary
static void run(java.lang.Object testClassInstance, java.lang.String folderToCheck, java.lang.String ruleFileName)
          Runs the JUnit Checkstyle 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

JUnitCheckstyleTestWrapper

public JUnitCheckstyleTestWrapper()
Method Detail

run

public static void run(java.lang.Object testClassInstance,
                       java.lang.String folderToCheck,
                       java.lang.String ruleFileName)
                throws java.io.FileNotFoundException,
                       com.puppycrawl.tools.checkstyle.api.CheckstyleException
Runs the JUnit Checkstyle 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 Checkstyle rule set file that should be located in the same folder
Throws:
java.io.FileNotFoundException - If any errors occur
com.puppycrawl.tools.checkstyle.api.CheckstyleException - If any error occur