org.apache.commons.math.fraction
Class FractionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.fraction.FractionTest
All Implemented Interfaces:
junit.framework.Test

public class FractionTest
extends junit.framework.TestCase

Version:
$Revision: 795903 $ $Date: 2009-07-20 12:29:46 -0400 (Mon, 20 Jul 2009) $

Constructor Summary
FractionTest()
           
 
Method Summary
 void testAbs()
           
 void testAdd()
           
 void testCompareTo()
           
 void testConstructor()
           
 void testConstructorDouble()
           
 void testDigitLimitConstructor()
           
 void testDivide()
           
 void testDoubleConstructor()
           
 void testDoubleValue()
           
 void testEpsilonLimitConstructor()
           
 void testEqualsAndHashCode()
           
 void testFloatValue()
           
 void testGetReducedFraction()
           
 void testGoldenRatio()
           
 void testIntegerOverflow()
           
 void testIntValue()
           
 void testLongValue()
           
 void testMultiply()
           
 void testNegate()
           
 void testReciprocal()
           
 void testSerial()
           
 void testSubtract()
           
 void testToString()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FractionTest

public FractionTest()
Method Detail

testConstructor

public void testConstructor()

testGoldenRatio

public void testGoldenRatio()

testDoubleConstructor

public void testDoubleConstructor()
                           throws org.apache.commons.math.ConvergenceException
Throws:
org.apache.commons.math.ConvergenceException

testDigitLimitConstructor

public void testDigitLimitConstructor()
                               throws org.apache.commons.math.ConvergenceException
Throws:
org.apache.commons.math.ConvergenceException

testIntegerOverflow

public void testIntegerOverflow()

testEpsilonLimitConstructor

public void testEpsilonLimitConstructor()
                                 throws org.apache.commons.math.ConvergenceException
Throws:
org.apache.commons.math.ConvergenceException

testCompareTo

public void testCompareTo()

testDoubleValue

public void testDoubleValue()

testFloatValue

public void testFloatValue()

testIntValue

public void testIntValue()

testLongValue

public void testLongValue()

testConstructorDouble

public void testConstructorDouble()

testAbs

public void testAbs()

testReciprocal

public void testReciprocal()

testNegate

public void testNegate()

testAdd

public void testAdd()

testDivide

public void testDivide()

testMultiply

public void testMultiply()

testSubtract

public void testSubtract()

testEqualsAndHashCode

public void testEqualsAndHashCode()

testGetReducedFraction

public void testGetReducedFraction()

testToString

public void testToString()

testSerial

public void testSerial()
                throws org.apache.commons.math.fraction.FractionConversionException
Throws:
org.apache.commons.math.fraction.FractionConversionException


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.