net.sourceforge.pmd
Class RuleSetFactoryTest

java.lang.Object
  extended by net.sourceforge.pmd.RuleSetFactoryTest

public class RuleSetFactoryTest
extends Object


Constructor Summary
RuleSetFactoryTest()
           
 
Method Summary
 void testBug1202()
          Rule reference can't be resolved - ref is used instead of class and the class is old (pmd 4.3 and not pmd 5).
 void testCreateEmptyRuleSet()
           
 void testDFAFlag()
           
 void testDirectDeprecatedRule()
           
 void testEmptyRuleSetFile()
          See https://sourceforge.net/p/pmd/bugs/1225/
 void testExtendedReferences()
           
 void testExternalReferenceOverride()
           
 void testExternalReferences()
           
 void testFacadesOffByDefault()
           
 void testIncludeExcludePatterns()
           
 void testIncorrectExternalRef()
           
 void testIncorrectLanguage()
           
 void testIncorrectMaximumLanugageVersion()
           
 void testIncorrectMinimumLanugageVersion()
           
 void testInvertedMinimumMaximumLanugageVersions()
           
 void testLanguage()
           
 void testMaximumLanugageVersion()
           
 void testMinimumLanugageVersion()
           
 void testMultipleRules()
           
 void testNoRuleSetFileName()
           
 void testOverrideMessage()
           
 void testOverrideMessageOneElem()
           
 void testProps()
           
 void testReferenceInternalToExternal()
           
 void testReferenceInternalToExternalChain()
           
 void testReferenceInternalToInternal()
           
 void testReferenceInternalToInternalChain()
           
 void testReferencePriority()
           
 void testReferenceToDeprecatedRule()
           
 void testRefs()
           
 void testRuleReferenceWithNameOverridden()
          Unit test for #1312 see https://sourceforge.net/p/pmd/bugs/1312/
 void testRuleSetFileName()
           
 void testRuleSetNotFound()
           
 void testRuleSetReferencesADeprecatedRenamedRule()
           
 void testRuleSetReferenceWithDeprecatedRule()
           
 void testRuleSetWithDeprecatedButRenamedRule()
           
 void testRuleSetWithDeprecatedRule()
           
 void testSetPriority()
           
 void testSingleRule()
           
 void testSingleRuleWithPriority()
           
 void testStringMultiPropertyDefaultDelimiter()
           
 void testStringMultiPropertyDelimiter()
           
 void testWrongRuleNameExcluded()
          See https://sourceforge.net/p/pmd/bugs/1231/
 void testWrongRuleNameReferenced()
          See https://sourceforge.net/p/pmd/bugs/1231/
 void testXPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSetFactoryTest

public RuleSetFactoryTest()
Method Detail

testRuleSetFileName

public void testRuleSetFileName()
                         throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testNoRuleSetFileName

public void testNoRuleSetFileName()
                           throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testRefs

public void testRefs()
              throws Throwable
Throws:
Throwable

testExtendedReferences

public void testExtendedReferences()
                            throws Exception
Throws:
Exception

testRuleSetNotFound

public void testRuleSetNotFound()
                         throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testCreateEmptyRuleSet

public void testCreateEmptyRuleSet()
                            throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testSingleRule

public void testSingleRule()
                    throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testMultipleRules

public void testMultipleRules()
                       throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testSingleRuleWithPriority

public void testSingleRuleWithPriority()
                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testProps

public void testProps()
               throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testStringMultiPropertyDefaultDelimiter

public void testStringMultiPropertyDefaultDelimiter()
                                             throws Exception
Throws:
Exception

testStringMultiPropertyDelimiter

public void testStringMultiPropertyDelimiter()
                                      throws Exception
Throws:
Exception

testRuleSetWithDeprecatedRule

public void testRuleSetWithDeprecatedRule()
                                   throws Exception
Throws:
Exception

testRuleSetWithDeprecatedButRenamedRule

public void testRuleSetWithDeprecatedButRenamedRule()
                                             throws Exception
Throws:
Exception

testRuleSetReferencesADeprecatedRenamedRule

public void testRuleSetReferencesADeprecatedRenamedRule()
                                                 throws Exception
Throws:
Exception

testXPath

public void testXPath()
               throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testFacadesOffByDefault

public void testFacadesOffByDefault()
                             throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testDFAFlag

public void testDFAFlag()
                 throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testExternalReferenceOverride

public void testExternalReferenceOverride()
                                   throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferenceInternalToInternal

public void testReferenceInternalToInternal()
                                     throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferenceInternalToInternalChain

public void testReferenceInternalToInternalChain()
                                          throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferenceInternalToExternal

public void testReferenceInternalToExternal()
                                     throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferenceInternalToExternalChain

public void testReferenceInternalToExternalChain()
                                          throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferencePriority

public void testReferencePriority()
                           throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testOverrideMessage

public void testOverrideMessage()
                         throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testOverrideMessageOneElem

public void testOverrideMessageOneElem()
                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testIncorrectExternalRef

public void testIncorrectExternalRef()
                              throws IllegalArgumentException,
                                     RuleSetNotFoundException
Throws:
IllegalArgumentException
RuleSetNotFoundException

testSetPriority

public void testSetPriority()
                     throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testLanguage

public void testLanguage()
                  throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testIncorrectLanguage

public void testIncorrectLanguage()
                           throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testMinimumLanugageVersion

public void testMinimumLanugageVersion()
                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testIncorrectMinimumLanugageVersion

public void testIncorrectMinimumLanugageVersion()
                                         throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testMaximumLanugageVersion

public void testMaximumLanugageVersion()
                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testIncorrectMaximumLanugageVersion

public void testIncorrectMaximumLanugageVersion()
                                         throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testInvertedMinimumMaximumLanugageVersions

public void testInvertedMinimumMaximumLanugageVersions()
                                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testDirectDeprecatedRule

public void testDirectDeprecatedRule()
                              throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testReferenceToDeprecatedRule

public void testReferenceToDeprecatedRule()
                                   throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testRuleSetReferenceWithDeprecatedRule

public void testRuleSetReferenceWithDeprecatedRule()
                                            throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testExternalReferences

public void testExternalReferences()
                            throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testIncludeExcludePatterns

public void testIncludeExcludePatterns()
                                throws RuleSetNotFoundException
Throws:
RuleSetNotFoundException

testBug1202

public void testBug1202()
                 throws Exception
Rule reference can't be resolved - ref is used instead of class and the class is old (pmd 4.3 and not pmd 5).

Throws:
Exception - any error

testEmptyRuleSetFile

public void testEmptyRuleSetFile()
                          throws Exception
See https://sourceforge.net/p/pmd/bugs/1225/

Throws:
Exception - any error

testWrongRuleNameReferenced

public void testWrongRuleNameReferenced()
                                 throws Exception
See https://sourceforge.net/p/pmd/bugs/1231/

Throws:
Exception - any error

testRuleReferenceWithNameOverridden

public void testRuleReferenceWithNameOverridden()
                                         throws Exception
Unit test for #1312 see https://sourceforge.net/p/pmd/bugs/1312/

Throws:
Exception - any error

testWrongRuleNameExcluded

public void testWrongRuleNameExcluded()
                               throws Exception
See https://sourceforge.net/p/pmd/bugs/1231/

Throws:
Exception - any error


Copyright © 2002–2015 InfoEther. All rights reserved.