org.joda.time
Class TestInterval_Basics

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

public class TestInterval_Basics
extends junit.framework.TestCase

This class is a Junit unit test for Instant.

Author:
Stephen Colebourne

Constructor Summary
TestInterval_Basics(String name)
           
 
Method Summary
static void main(String[] args)
           
protected  void setUp()
           
static junit.framework.TestSuite suite()
           
protected  void tearDown()
           
 void test_useCase_ContainsOverlapAbutGap_bothZeroDuration()
           
 void test_useCase_ContainsOverlapAbutGap_zeroDuration()
           
 void test_useCase_ContainsOverlapAbutGap()
           
 void testAbuts_RInterval_null()
           
 void testAbuts_RInterval()
           
 void testContains_long_zeroDuration()
           
 void testContains_long()
           
 void testContains_RI_null()
           
 void testContains_RI_zeroDuration()
           
 void testContains_RI()
           
 void testContains_RInterval_null()
           
 void testContains_RInterval_zeroDuration()
           
 void testContains_RInterval()
           
 void testContainsNow()
           
 void testEqualsHashCode()
           
 void testEqualsHashCodeLenient()
           
 void testEqualsHashCodeStrict()
           
 void testGap_RInterval_null()
           
 void testGap_RInterval_zone()
           
 void testGap_RInterval_zoneUTC()
           
 void testGap_RInterval()
           
 void testGetDuration1()
           
 void testGetDuration2()
           
 void testGetMillis()
           
 void testIsAfter_long()
           
 void testIsAfter_RI_null()
           
 void testIsAfter_RI()
           
 void testIsAfter_RInterval_null()
           
 void testIsAfter_RInterval()
           
 void testIsAfterNow()
           
 void testIsBefore_long()
           
 void testIsBefore_RI_null()
           
 void testIsBefore_RI()
           
 void testIsBefore_RInterval_null()
           
 void testIsBefore_RInterval()
           
 void testIsBeforeNow()
           
 void testOverlap_RInterval_null()
           
 void testOverlap_RInterval_zone()
           
 void testOverlap_RInterval_zoneUTC()
           
 void testOverlap_RInterval()
           
 void testOverlaps_RInterval_null()
           
 void testOverlaps_RInterval_zeroDuration()
           
 void testOverlaps_RInterval()
           
 void testSerialization()
           
 void testTest()
           
 void testToInterval1()
           
 void testToMutableInterval1()
           
 void testToPeriod_PeriodType1()
           
 void testToPeriod_PeriodType2()
           
 void testToPeriod()
           
 void testToString_reparse()
           
 void testToString()
           
 void testWithChronology1()
           
 void testWithChronology2()
           
 void testWithChronology3()
           
 void testWithDurationAfterStart1()
           
 void testWithDurationAfterStart2()
           
 void testWithDurationAfterStart3()
           
 void testWithDurationAfterStart4()
           
 void testWithDurationBeforeEnd1()
           
 void testWithDurationBeforeEnd2()
           
 void testWithDurationBeforeEnd3()
           
 void testWithDurationBeforeEnd4()
           
 void testWithEndInstant_RI1()
           
 void testWithEndInstant_RI2()
           
 void testWithEndInstant_RI3()
           
 void testWithEndMillis_long1()
           
 void testWithEndMillis_long2()
           
 void testWithEndMillis_long3()
           
 void testWithPeriodAfterStart1()
           
 void testWithPeriodAfterStart2()
           
 void testWithPeriodAfterStart3()
           
 void testWithPeriodBeforeEnd1()
           
 void testWithPeriodBeforeEnd2()
           
 void testWithPeriodBeforeEnd3()
           
 void testWithStartInstant_RI1()
           
 void testWithStartInstant_RI2()
           
 void testWithStartInstant_RI3()
           
 void testWithStartMillis_long1()
           
 void testWithStartMillis_long2()
           
 void testWithStartMillis_long3()
           
 
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

TestInterval_Basics

public TestInterval_Basics(String name)
Method Detail

main

public static void main(String[] args)

suite

public static junit.framework.TestSuite suite()

setUp

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

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testTest

public void testTest()

testGetMillis

public void testGetMillis()

testGetDuration1

public void testGetDuration1()

testGetDuration2

public void testGetDuration2()

testEqualsHashCode

public void testEqualsHashCode()

testEqualsHashCodeLenient

public void testEqualsHashCodeLenient()

testEqualsHashCodeStrict

public void testEqualsHashCodeStrict()

test_useCase_ContainsOverlapAbutGap

public void test_useCase_ContainsOverlapAbutGap()

test_useCase_ContainsOverlapAbutGap_zeroDuration

public void test_useCase_ContainsOverlapAbutGap_zeroDuration()

test_useCase_ContainsOverlapAbutGap_bothZeroDuration

public void test_useCase_ContainsOverlapAbutGap_bothZeroDuration()

testContains_long

public void testContains_long()

testContains_long_zeroDuration

public void testContains_long_zeroDuration()

testContainsNow

public void testContainsNow()

testContains_RI

public void testContains_RI()

testContains_RI_null

public void testContains_RI_null()

testContains_RI_zeroDuration

public void testContains_RI_zeroDuration()

testContains_RInterval

public void testContains_RInterval()

testContains_RInterval_null

public void testContains_RInterval_null()

testContains_RInterval_zeroDuration

public void testContains_RInterval_zeroDuration()

testOverlaps_RInterval

public void testOverlaps_RInterval()

testOverlaps_RInterval_null

public void testOverlaps_RInterval_null()

testOverlaps_RInterval_zeroDuration

public void testOverlaps_RInterval_zeroDuration()

testOverlap_RInterval

public void testOverlap_RInterval()

testOverlap_RInterval_null

public void testOverlap_RInterval_null()

testOverlap_RInterval_zone

public void testOverlap_RInterval_zone()

testOverlap_RInterval_zoneUTC

public void testOverlap_RInterval_zoneUTC()

testGap_RInterval

public void testGap_RInterval()

testGap_RInterval_null

public void testGap_RInterval_null()

testGap_RInterval_zone

public void testGap_RInterval_zone()

testGap_RInterval_zoneUTC

public void testGap_RInterval_zoneUTC()

testAbuts_RInterval

public void testAbuts_RInterval()

testAbuts_RInterval_null

public void testAbuts_RInterval_null()

testIsBefore_long

public void testIsBefore_long()

testIsBeforeNow

public void testIsBeforeNow()

testIsBefore_RI

public void testIsBefore_RI()

testIsBefore_RI_null

public void testIsBefore_RI_null()

testIsBefore_RInterval

public void testIsBefore_RInterval()

testIsBefore_RInterval_null

public void testIsBefore_RInterval_null()

testIsAfter_long

public void testIsAfter_long()

testIsAfterNow

public void testIsAfterNow()

testIsAfter_RI

public void testIsAfter_RI()

testIsAfter_RI_null

public void testIsAfter_RI_null()

testIsAfter_RInterval

public void testIsAfter_RInterval()

testIsAfter_RInterval_null

public void testIsAfter_RInterval_null()

testToInterval1

public void testToInterval1()

testToMutableInterval1

public void testToMutableInterval1()

testToPeriod

public void testToPeriod()

testToPeriod_PeriodType1

public void testToPeriod_PeriodType1()

testToPeriod_PeriodType2

public void testToPeriod_PeriodType2()

testSerialization

public void testSerialization()
                       throws Exception
Throws:
Exception

testToString

public void testToString()

testToString_reparse

public void testToString_reparse()

testWithChronology1

public void testWithChronology1()

testWithChronology2

public void testWithChronology2()

testWithChronology3

public void testWithChronology3()

testWithStartMillis_long1

public void testWithStartMillis_long1()

testWithStartMillis_long2

public void testWithStartMillis_long2()

testWithStartMillis_long3

public void testWithStartMillis_long3()

testWithStartInstant_RI1

public void testWithStartInstant_RI1()

testWithStartInstant_RI2

public void testWithStartInstant_RI2()

testWithStartInstant_RI3

public void testWithStartInstant_RI3()

testWithEndMillis_long1

public void testWithEndMillis_long1()

testWithEndMillis_long2

public void testWithEndMillis_long2()

testWithEndMillis_long3

public void testWithEndMillis_long3()

testWithEndInstant_RI1

public void testWithEndInstant_RI1()

testWithEndInstant_RI2

public void testWithEndInstant_RI2()

testWithEndInstant_RI3

public void testWithEndInstant_RI3()

testWithDurationAfterStart1

public void testWithDurationAfterStart1()
                                 throws Throwable
Throws:
Throwable

testWithDurationAfterStart2

public void testWithDurationAfterStart2()
                                 throws Throwable
Throws:
Throwable

testWithDurationAfterStart3

public void testWithDurationAfterStart3()
                                 throws Throwable
Throws:
Throwable

testWithDurationAfterStart4

public void testWithDurationAfterStart4()
                                 throws Throwable
Throws:
Throwable

testWithDurationBeforeEnd1

public void testWithDurationBeforeEnd1()
                                throws Throwable
Throws:
Throwable

testWithDurationBeforeEnd2

public void testWithDurationBeforeEnd2()
                                throws Throwable
Throws:
Throwable

testWithDurationBeforeEnd3

public void testWithDurationBeforeEnd3()
                                throws Throwable
Throws:
Throwable

testWithDurationBeforeEnd4

public void testWithDurationBeforeEnd4()
                                throws Throwable
Throws:
Throwable

testWithPeriodAfterStart1

public void testWithPeriodAfterStart1()
                               throws Throwable
Throws:
Throwable

testWithPeriodAfterStart2

public void testWithPeriodAfterStart2()
                               throws Throwable
Throws:
Throwable

testWithPeriodAfterStart3

public void testWithPeriodAfterStart3()
                               throws Throwable
Throws:
Throwable

testWithPeriodBeforeEnd1

public void testWithPeriodBeforeEnd1()
                              throws Throwable
Throws:
Throwable

testWithPeriodBeforeEnd2

public void testWithPeriodBeforeEnd2()
                              throws Throwable
Throws:
Throwable

testWithPeriodBeforeEnd3

public void testWithPeriodBeforeEnd3()
                              throws Throwable
Throws:
Throwable


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