com.atlassian.core.util
Class TestDateUtils

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.core.util.TestDateUtils
All Implemented Interfaces:
junit.framework.Test

public class TestDateUtils
extends junit.framework.TestCase


Constructor Summary
TestDateUtils(java.lang.String s)
           
 
Method Summary
protected  void setUp()
           
static junit.framework.Test suite()
           
 void testDateDifference1()
           
 void testDurationPretty()
           
 void testDurationPrettySecondsResolution()
           
 void testDurationString()
           
 void testDurationStringWithNegative()
           
 void testEqualTimeStamps1()
           
 void testEqualTimeStamps2()
           
 void testEqualTimeStamps3()
           
 void testEqualTimeStamps4()
           
 void testGetDuration()
           
 void testGetDuration2()
           
 void testGetDurationWithNegative()
           
 void testToEndOfPeriod()
           
 void testToStartOfPeriod()
           
 
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

TestDateUtils

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

setUp

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

testEqualTimeStamps1

public void testEqualTimeStamps1()

testEqualTimeStamps2

public void testEqualTimeStamps2()

testEqualTimeStamps3

public void testEqualTimeStamps3()

testEqualTimeStamps4

public void testEqualTimeStamps4()

testDateDifference1

public void testDateDifference1()

testGetDuration

public void testGetDuration()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testGetDuration2

public void testGetDuration2()
                      throws InvalidDurationException
Throws:
InvalidDurationException

testGetDurationWithNegative

public void testGetDurationWithNegative()
                                 throws InvalidDurationException
Throws:
InvalidDurationException

testDurationString

public void testDurationString()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testDurationStringWithNegative

public void testDurationStringWithNegative()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testDurationPretty

public void testDurationPretty()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testDurationPrettySecondsResolution

public void testDurationPrettySecondsResolution()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testToEndOfPeriod

public void testToEndOfPeriod()

testToStartOfPeriod

public void testToStartOfPeriod()

suite

public static junit.framework.Test suite()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.