org.kuali.rice.krad.datadictionary.validation.constraint
Class FixedPointPatternConstraintTest
java.lang.Object
org.kuali.rice.krad.datadictionary.validation.constraint.FixedPointPatternConstraintTest
public class FixedPointPatternConstraintTest
- extends Object
Things this test should check:
1. empty value check. (failure) testValueEmpty()
2. value with valid positive number within specified precision and scale. (success) testValueValidPositiveNumber()
3. value with invalid positive number as per given precision and scale. (failure) testValueInvalidPositiveNumber()
4. value with invalid negative number as allowNegative set to false. (failure) testValueInvalidNegativeNumber()
5. value with valid negative number within specified precision and scale, with allowNegative set to true. (success) testValueValidNegativeNumber()
6. value with invalid negative number as per given precision and scale. (failure) testValueInvalidNegativeNumber1()
7. value with invalid positive number as per given precision and scale. (failure) testValueInvalidPositiveNumber1()
8. value with valid negative number within specified precision and scale, with allowNegative set to true. (success) testValueValidNegativeNumber1()
9. zero precision and scale test. (error) testZeroPrecisionAndScale()
10. precision less than scale test. (error) testPrecisionLessThanScale()
11. negative precision and scale test. (error) testNegativePrecisionAndScale()
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedPointPatternConstraintTest
public FixedPointPatternConstraintTest()
setUp
public void setUp()
throws Exception
- Throws:
Exception
testValueEmpty
public void testValueEmpty()
testValueValidPositiveNumber
public void testValueValidPositiveNumber()
testValueInvalidPositiveNumber
public void testValueInvalidPositiveNumber()
testValueInvalidNegativeNumber
public void testValueInvalidNegativeNumber()
testValueValidNegativeNumber
public void testValueValidNegativeNumber()
testValueInvalidNegativeNumber1
public void testValueInvalidNegativeNumber1()
testValueInvalidPositiveNumber1
public void testValueInvalidPositiveNumber1()
testValueValidNegativeNumber1
public void testValueValidNegativeNumber1()
testZeroPrecisionAndScale
public void testZeroPrecisionAndScale()
testPrecisionLessThanScale
public void testPrecisionLessThanScale()
testNegativePrecisionAndScale
public void testNegativePrecisionAndScale()
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.