org.apache.commons.math.fraction
Class FractionFormatTest

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

public class FractionFormatTest
extends junit.framework.TestCase


Constructor Summary
FractionFormatTest()
           
 
Method Summary
protected  java.util.Locale getLocale()
           
protected  void setUp()
           
 void testDenominatorFormat()
           
 void testFormat()
           
 void testFormatImproper()
           
 void testFormatImproperNegative()
           
 void testFormatNegative()
           
 void testFormatZero()
           
 void testNumeratorFormat()
           
 void testParse()
           
 void testParseInteger()
           
 void testParseInvalid()
           
 void testParseInvalidDenominator()
           
 void testParseNegative()
           
 void testParseProper()
           
 void testParseProperInvalidMinus()
           
 void testParseProperNegative()
           
 void testWholeFormat()
           
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FractionFormatTest

public FractionFormatTest()
Method Detail

getLocale

protected java.util.Locale getLocale()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testFormat

public void testFormat()

testFormatNegative

public void testFormatNegative()

testFormatZero

public void testFormatZero()

testFormatImproper

public void testFormatImproper()

testFormatImproperNegative

public void testFormatImproperNegative()

testParse

public void testParse()

testParseInteger

public void testParseInteger()

testParseInvalid

public void testParseInvalid()

testParseInvalidDenominator

public void testParseInvalidDenominator()

testParseNegative

public void testParseNegative()

testParseProper

public void testParseProper()

testParseProperNegative

public void testParseProperNegative()

testParseProperInvalidMinus

public void testParseProperInvalidMinus()

testNumeratorFormat

public void testNumeratorFormat()

testDenominatorFormat

public void testDenominatorFormat()

testWholeFormat

public void testWholeFormat()


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.