org.joda.time
Class TestDateTimeComparator

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.joda.time.TestDateTimeComparator
All Implemented Interfaces:
junit.framework.Test

public class TestDateTimeComparator
extends junit.framework.TestCase

This class is a Junit unit test for the org.joda.time.DateTimeComparator class.

Author:
Guy Allard

Constructor Summary
TestDateTimeComparator(String name)
           
 
Method Summary
static void main(String[] args)
           
 void setUp()
          Junit setUp() method.
static junit.framework.TestSuite suite()
           
protected  void tearDown()
          Junit tearDown() method.
 void testBasicComps1()
          Test all basic comparator operation with DateTime objects.
 void testBasicComps2()
          Test all basic comparator operation with ReadableInstant objects.
 void testBasicComps3()
          Test all basic comparator operation with java Date objects.
 void testBasicComps4()
          Test all basic comparator operation with Long objects.
 void testBasicComps5()
          Test all basic comparator operation with Calendar objects.
 void testClass()
           
 void testDOM()
          Test unequal comparisons with day of month comparators.
 void testDOW()
          Test unequal comparisons with day of week comparators.
 void testDOY()
          Test unequal comparisons with day of year comparators.
 void testEqualsHashCode()
           
 void testHour()
          Test unequal comparisons with hour comparators.
 void testInvalidObj()
          Test comparator operation with an invalid object type.
 void testListBasic()
          Test sorting with full default comparator.
 void testListDate()
          Test sorting with date only comparator.
 void testListDOM()
          Test sorting with day of month comparator.
 void testListDOW()
          Test sorting with day of week comparator.
 void testListDOY()
          Test sorting with day of year comparator.
 void testListHour()
          Test sorting with hour comparator.
 void testListMillis()
          Test sorting with millis of second comparator.
 void testListMinute()
          Test sorting with minute comparator.
 void testListMonth()
          Test sorting with month comparator.
 void testListSecond()
          Test sorting with second comparator.
 void testListTime()
          Test sorting with time only comparator.
 void testListWOW()
          Test sorting with week of weekyear comparator.
 void testListYear()
          Test sorting with year comparator.
 void testListYOYY()
          Test sorting with year (given week) comparator.
 void testMillis()
          Test unequal comparisons with millis of second comparators.
 void testMinute()
          Test unequal comparisons with minute comparators.
 void testMonth()
          Test unequal comparisons with month comparators.
 void testNullDT()
          Test comparator operation with null object(s).
 void testSecond()
          Test unequal comparisons with second comparators.
 void testSerialization1()
           
 void testSerialization2()
           
 void testStaticGetDateOnlyInstance()
           
 void testStaticGetInstance()
           
 void testStaticGetInstanceLower()
           
 void testStaticGetInstanceLowerUpper()
           
 void testStaticGetTimeOnlyInstance()
           
 void testWOW()
          Test unequal comparisons with week of weekyear comparators.
 void testWOYY()
          Test unequal comparisons with year given the week comparators.
 void testYear()
          Test unequal comparisons with year comparators.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

TestDateTimeComparator

public TestDateTimeComparator(String name)
Method Detail

main

public static void main(String[] args)

suite

public static junit.framework.TestSuite suite()

setUp

public void setUp()
Junit setUp() method.

Overrides:
setUp in class junit.framework.TestCase

tearDown

protected void tearDown()
Junit tearDown() method.

Overrides:
tearDown in class junit.framework.TestCase

testClass

public void testClass()

testStaticGetInstance

public void testStaticGetInstance()

testStaticGetDateOnlyInstance

public void testStaticGetDateOnlyInstance()

testStaticGetTimeOnlyInstance

public void testStaticGetTimeOnlyInstance()

testStaticGetInstanceLower

public void testStaticGetInstanceLower()

testStaticGetInstanceLowerUpper

public void testStaticGetInstanceLowerUpper()

testEqualsHashCode

public void testEqualsHashCode()

testSerialization1

public void testSerialization1()
                        throws Exception
Throws:
Exception

testSerialization2

public void testSerialization2()
                        throws Exception
Throws:
Exception

testBasicComps1

public void testBasicComps1()
Test all basic comparator operation with DateTime objects.


testBasicComps2

public void testBasicComps2()
Test all basic comparator operation with ReadableInstant objects.


testBasicComps3

public void testBasicComps3()
Test all basic comparator operation with java Date objects.


testBasicComps4

public void testBasicComps4()
Test all basic comparator operation with Long objects.


testBasicComps5

public void testBasicComps5()
Test all basic comparator operation with Calendar objects.


testMillis

public void testMillis()
Test unequal comparisons with millis of second comparators.


testSecond

public void testSecond()
Test unequal comparisons with second comparators.


testMinute

public void testMinute()
Test unequal comparisons with minute comparators.


testHour

public void testHour()
Test unequal comparisons with hour comparators.


testDOW

public void testDOW()
Test unequal comparisons with day of week comparators.


testDOM

public void testDOM()
Test unequal comparisons with day of month comparators.


testDOY

public void testDOY()
Test unequal comparisons with day of year comparators.


testWOW

public void testWOW()
Test unequal comparisons with week of weekyear comparators.


testWOYY

public void testWOYY()
Test unequal comparisons with year given the week comparators.


testMonth

public void testMonth()
Test unequal comparisons with month comparators.


testYear

public void testYear()
Test unequal comparisons with year comparators.


testListBasic

public void testListBasic()
Test sorting with full default comparator.


testListMillis

public void testListMillis()
Test sorting with millis of second comparator.


testListSecond

public void testListSecond()
Test sorting with second comparator.


testListMinute

public void testListMinute()
Test sorting with minute comparator.


testListHour

public void testListHour()
Test sorting with hour comparator.


testListDOW

public void testListDOW()
Test sorting with day of week comparator.


testListDOM

public void testListDOM()
Test sorting with day of month comparator.


testListDOY

public void testListDOY()
Test sorting with day of year comparator.


testListWOW

public void testListWOW()
Test sorting with week of weekyear comparator.


testListYOYY

public void testListYOYY()
Test sorting with year (given week) comparator.


testListMonth

public void testListMonth()
Test sorting with month comparator.


testListYear

public void testListYear()
Test sorting with year comparator.


testListDate

public void testListDate()
Test sorting with date only comparator.


testListTime

public void testListTime()
Test sorting with time only comparator.


testNullDT

public void testNullDT()
Test comparator operation with null object(s).


testInvalidObj

public void testInvalidObj()
Test comparator operation with an invalid object type.



Copyright © 2002-2013 Joda.org. All Rights Reserved.