org.kuali.rice.krad.datadictionary.validation.constraint
Class FixedPointPatternConstraintTest

java.lang.Object
  extended by 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)

Constructor Summary
FixedPointPatternConstraintTest()
           
 
Method Summary
 void setUp()
           
 void testNegativePrecisionAndScale()
           
 void testPrecisionLessThanScale()
           
 void testValueEmpty()
           
 void testValueInvalidNegativeNumber()
           
 void testValueInvalidNegativeNumber1()
           
 void testValueInvalidPositiveNumber()
           
 void testValueInvalidPositiveNumber1()
           
 void testValueValidNegativeNumber()
           
 void testValueValidNegativeNumber1()
           
 void testValueValidPositiveNumber()
           
 void testZeroPrecisionAndScale()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedPointPatternConstraintTest

public FixedPointPatternConstraintTest()
Method Detail

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-2014 The Kuali Foundation. All Rights Reserved.