com.retek.commons.util.type
Class MoneyTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.retek.commons.util.RetekTestCase
com.retek.commons.util.type.MoneyTest
- All Implemented Interfaces:
- junit.framework.Test
- public class MoneyTest
- extends RetekTestCase
Constructor Summary |
MoneyTest(java.lang.String name)
|
Methods inherited from class com.retek.commons.util.RetekTestCase |
assertBusinessException, assertBusinessExceptionAttribute, assertContainsString, assertDateEqualsIgnoreTime, assertDateNotEqualsIgnoreTime, assertDateTimeEquals, assertEquals, assertEqualValuesDeep, assertEqualValuesDeep, assertEqualValuesDeep, assertFalse, assertFalse, assertNotEquals, assertNotNullAndEquals, assertNull, assertRetekEquals, assertStateEquals, assertStateNotEquals, assertXmlEquals, findDto, findDto, getContext, getReadBackContext, getReferences, getReferences, isOracleTestCase, resetSystemRDateToBusinessDay, runTest, setSecurityEncryption, setTaxSimulate, setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, name, run, run, runBare, setName, toString |
Methods inherited from class junit.framework.Assert |
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MoneyTest
public MoneyTest(java.lang.String name)
suite
public static junit.framework.Test suite()
doInitialSetUp
public void doInitialSetUp()
throws java.lang.Exception
- Specified by:
doInitialSetUp
in class RetekTestCase
- Throws:
java.lang.Exception
doSetUp
public void doSetUp()
throws java.lang.Exception
- Specified by:
doSetUp
in class RetekTestCase
- Throws:
java.lang.Exception
doTearDown
public void doTearDown()
throws java.lang.Exception
- Specified by:
doTearDown
in class RetekTestCase
- Throws:
java.lang.Exception
testCreateWithEmptyString
public void testCreateWithEmptyString()
testCreateWithNull
public void testCreateWithNull()
testAddNullMoney
public void testAddNullMoney()
testAddNullPercent
public void testAddNullPercent()
testSubtractNullMoney
public void testSubtractNullMoney()
testSubtractNullPercent
public void testSubtractNullPercent()
testMultiplyNullQuantity
public void testMultiplyNullQuantity()
testMultiplyNullPercent
public void testMultiplyNullPercent()
testToStringForWholeAmount
public void testToStringForWholeAmount()
testToStringForDecimalAmount
public void testToStringForDecimalAmount()
testAddTwoDecimals
public void testAddTwoDecimals()
testImmutable
public void testImmutable()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBigDecimalImmutability
public void testBigDecimalImmutability()
testAddDecimalAndWhole
public void testAddDecimalAndWhole()
testValidEquals
public void testValidEquals()
testInvalidEquals
public void testInvalidEquals()
testMultiplyByLong
public void testMultiplyByLong()
testToString
public void testToString()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDivideByLong
public void testDivideByLong()
testComparable
public void testComparable()
testToBigDecimalWithRounding
public void testToBigDecimalWithRounding()
testDivide
public void testDivide()
testRounding
public void testRounding()
testQtyPortionCalculation
public void testQtyPortionCalculation()
throws java.lang.Exception
- Throws:
java.lang.Exception
testDollarPortionCalculation
public void testDollarPortionCalculation()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateThirds
public void testProrateThirds()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateZero
public void testProrateZero()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProratePrevPlusCurrentGreaterThanGrandTotal
public void testProratePrevPlusCurrentGreaterThanGrandTotal()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateHandlesNullAgrumentsWithIllegalArgumentQuantityException
public void testProrateHandlesNullAgrumentsWithIllegalArgumentQuantityException()
throws java.lang.Exception
- Throws:
java.lang.Exception
testBusinessAverage
public void testBusinessAverage()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAbsoluteValue
public void testAbsoluteValue()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateHandlesNullAgrumentsWithIllegalArgumentMoneyException
public void testProrateHandlesNullAgrumentsWithIllegalArgumentMoneyException()
throws java.lang.Exception
- Throws:
java.lang.Exception
testAddPercent
public void testAddPercent()
throws java.lang.Exception
- Throws:
java.lang.Exception
testSubtractPercent
public void testSubtractPercent()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMultiplyPercent
public void testMultiplyPercent()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMultiplyQty
public void testMultiplyQty()
throws java.lang.Exception
- Throws:
java.lang.Exception
testMin
public void testMin()
testMax
public void testMax()
testPositiveNegativeZero
public void testPositiveNegativeZero()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateWhenCurrentEqualsGrandTotalForMonies
public void testProrateWhenCurrentEqualsGrandTotalForMonies()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrateWhenCurrentEqualsGrandTotalForQuantities
public void testProrateWhenCurrentEqualsGrandTotalForQuantities()
throws java.lang.Exception
- Throws:
java.lang.Exception
testProrationOptimization
public void testProrationOptimization()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28