net.sourceforge.pmd.properties
Class DoublePropertyTest
java.lang.Object
net.sourceforge.pmd.properties.AbstractPropertyDescriptorTester
net.sourceforge.pmd.properties.DoublePropertyTest
public class DoublePropertyTest
- extends AbstractPropertyDescriptorTester
Evaluates the functionality of the DoubleProperty descriptor by testing its
ability to catch creation errors (illegal args), flag out-of-range test
values, and serialize/deserialize groups of double values onto/from a string
buffer.
- Author:
- Brian Remedios
Method Summary |
protected PropertyDescriptor |
createBadProperty(boolean multiValue)
Attempts to create a property with invalid constructor arguments. |
protected Object |
createBadValue(int count)
Creates and returns (count) number of out-of-range values |
protected PropertyDescriptor |
createProperty(boolean multiValue)
Creates and returns a property with a (maxCount) value cardinality. |
protected Object |
createValue(int count)
Creates and returns (count) number of legal Double values |
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 |
DoublePropertyTest
public DoublePropertyTest()
createValue
protected Object createValue(int count)
- Creates and returns (count) number of legal Double values
- Specified by:
createValue
in class AbstractPropertyDescriptorTester
- Parameters:
count
- int
- Returns:
- Object
createBadValue
protected Object createBadValue(int count)
- Creates and returns (count) number of out-of-range values
- Specified by:
createBadValue
in class AbstractPropertyDescriptorTester
- Parameters:
count
- int
- Returns:
- Object
createProperty
protected PropertyDescriptor createProperty(boolean multiValue)
- Creates and returns a property with a (maxCount) value cardinality.
- Specified by:
createProperty
in class AbstractPropertyDescriptorTester
- Parameters:
multiValue
- boolean
- Returns:
- PropertyDescriptor
createBadProperty
protected PropertyDescriptor createBadProperty(boolean multiValue)
- Attempts to create a property with invalid constructor arguments.
- Specified by:
createBadProperty
in class AbstractPropertyDescriptorTester
- Parameters:
multiValue
- boolean
- Returns:
- PropertyDescriptor
Copyright © 2002–2015 InfoEther. All rights reserved.