net.sourceforge.pmd.properties
Class TypePropertyTest

java.lang.Object
  extended by net.sourceforge.pmd.properties.AbstractPropertyDescriptorTester
      extended by net.sourceforge.pmd.properties.TypePropertyTest

public class TypePropertyTest
extends AbstractPropertyDescriptorTester

Evaluates the functionality of the TypeProperty descriptor by testing its ability to catch creation errors (illegal args), flag invalid Type values per the allowable packages, and serialize/deserialize groups of types onto/from a string buffer. We're using java.lang classes for 'normal' constructors and applying java.util types as ones we expect to fail.

Author:
Brian Remedios

Field Summary
 
Fields inherited from class net.sourceforge.pmd.properties.AbstractPropertyDescriptorTester
allChars, alphaChars, alphaNumericChars, digitChars, punctuationChars, typeName, whitespaceChars
 
Constructor Summary
TypePropertyTest()
           
 
Method Summary
protected  PropertyDescriptor createBadProperty(boolean multiValue)
          Method createProperty.
protected  Object createBadValue(int count)
          Method createBadValue.
protected  PropertyDescriptor createProperty(boolean multiValue)
          Method createProperty.
protected  Object createValue(int count)
          Method createValue.
 
Methods inherited from class net.sourceforge.pmd.properties.AbstractPropertyDescriptorTester
filter, getMultiFactory, getSingleFactory, randomBool, randomChar, randomChoice, randomDouble, randomFloat, randomInt, randomInt, randomString, testAsDelimitedString, testConstructors, testErrorFor, testErrorForBad, testFactoryMultiValueCustomDelimiter, testFactoryMultiValueDefaultDelimiter, testFactorySingleValue, testType, testValueFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypePropertyTest

public TypePropertyTest()
Method Detail

createValue

protected Object createValue(int count)
Method createValue.

Specified by:
createValue in class AbstractPropertyDescriptorTester
Parameters:
count - int
Returns:
Object

createBadValue

protected Object createBadValue(int count)
Method createBadValue.

Specified by:
createBadValue in class AbstractPropertyDescriptorTester
Parameters:
count - int
Returns:
Object

createProperty

protected PropertyDescriptor createProperty(boolean multiValue)
Method createProperty.

Specified by:
createProperty in class AbstractPropertyDescriptorTester
Parameters:
multiValue - boolean
Returns:
PropertyDescriptor

createBadProperty

protected PropertyDescriptor createBadProperty(boolean multiValue)
Method createProperty.

Specified by:
createBadProperty in class AbstractPropertyDescriptorTester
Parameters:
multiValue - boolean
Returns:
PropertyDescriptor


Copyright © 2002–2015 InfoEther. All rights reserved.