org.apache.commons.lang.math
Class FractionTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.commons.lang.math.FractionTest
- All Implemented Interfaces:
- junit.framework.Test
- public class FractionTest
- extends junit.framework.TestCase
Test cases for the Fraction class
- Version:
- $Id: FractionTest.java 599499 2007-11-29 16:25:30Z mbenson $
- Author:
- Stephen Colebourne, C. Scott Ananian
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FractionTest
public FractionTest(java.lang.String name)
suite
public static junit.framework.Test suite()
setUp
public void setUp()
testConstants
public void testConstants()
testFactory_int_int
public void testFactory_int_int()
testFactory_int_int_int
public void testFactory_int_int_int()
testReducedFactory_int_int
public void testReducedFactory_int_int()
testFactory_double
public void testFactory_double()
testFactory_String
public void testFactory_String()
testFactory_String_double
public void testFactory_String_double()
testFactory_String_proper
public void testFactory_String_proper()
testFactory_String_improper
public void testFactory_String_improper()
testGets
public void testGets()
testConversions
public void testConversions()
testReduce
public void testReduce()
testInvert
public void testInvert()
testNegate
public void testNegate()
testAbs
public void testAbs()
testPow
public void testPow()
testAdd
public void testAdd()
testSubtract
public void testSubtract()
testMultiply
public void testMultiply()
testDivide
public void testDivide()
testEquals
public void testEquals()
testHashCode
public void testHashCode()
testCompareTo
public void testCompareTo()
testToString
public void testToString()
testToProperString
public void testToProperString()
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.