org.apache.commons.lang.time
Class DurationFormatUtilsTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.lang.time.DurationFormatUtilsTest
All Implemented Interfaces:
junit.framework.Test

public class DurationFormatUtilsTest
extends junit.framework.TestCase

TestCase for DurationFormatUtils.

Author:
Apache Ant - DateUtilsTest, Stephane Bailliez, Stefan Bodewig, Stephen Colebourne, Gary Gregory

Constructor Summary
DurationFormatUtilsTest(java.lang.String s)
           
 
Method Summary
static void main(java.lang.String[] args)
           
static junit.framework.Test suite()
           
 void testBugzilla38401()
           
 void testConstructor()
           
 void testDurationsByBruteForce()
           
 void testEdgeDurations()
           
 void testFormatDuration()
           
 void testFormatDurationHMS()
           
 void testFormatDurationISO()
           
 void testFormatDurationPluralWords()
          Tests that "1 s" gets converted to "1 " but that "11 s" is left alone.
 void testFormatDurationWords()
           
 void testFormatPeriod()
           
 void testFormatPeriodISO()
           
 void testJiraLang281()
           
 void testLexx()
           
 void testLowDurations()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DurationFormatUtilsTest

public DurationFormatUtilsTest(java.lang.String s)
Method Detail

main

public static void main(java.lang.String[] args)

suite

public static junit.framework.Test suite()

testConstructor

public void testConstructor()

testFormatDurationWords

public void testFormatDurationWords()

testFormatDurationPluralWords

public void testFormatDurationPluralWords()
Tests that "1 s" gets converted to "1 " but that "11 s" is left alone.


testFormatDurationHMS

public void testFormatDurationHMS()

testFormatDurationISO

public void testFormatDurationISO()

testFormatDuration

public void testFormatDuration()

testFormatPeriodISO

public void testFormatPeriodISO()

testFormatPeriod

public void testFormatPeriod()

testLexx

public void testLexx()

testBugzilla38401

public void testBugzilla38401()

testJiraLang281

public void testJiraLang281()

testLowDurations

public void testLowDurations()

testEdgeDurations

public void testEdgeDurations()

testDurationsByBruteForce

public void testDurationsByBruteForce()


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