org.apache.commons.lang.math
Class FractionTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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

Constructor Summary
FractionTest(java.lang.String name)
           
 
Method Summary
 void setUp()
           
static junit.framework.Test suite()
           
 void testAbs()
           
 void testAdd()
           
 void testCompareTo()
           
 void testConstants()
           
 void testConversions()
           
 void testDivide()
           
 void testEquals()
           
 void testFactory_double()
           
 void testFactory_int_int_int()
           
 void testFactory_int_int()
           
 void testFactory_String_double()
           
 void testFactory_String_improper()
           
 void testFactory_String_proper()
           
 void testFactory_String()
           
 void testGets()
           
 void testHashCode()
           
 void testInvert()
           
 void testMultiply()
           
 void testNegate()
           
 void testPow()
           
 void testReduce()
           
 void testReducedFactory_int_int()
           
 void testSubtract()
           
 void testToProperString()
           
 void testToString()
           
 
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
 

Constructor Detail

FractionTest

public FractionTest(java.lang.String name)
Method Detail

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.