org.apache.hadoop.hive.ql.udf
Class TestUDFDateAdd

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.ql.udf.TestUDFDateAdd
All Implemented Interfaces:
junit.framework.Test

public class TestUDFDateAdd
extends junit.framework.TestCase

JUnit test for UDFDateAdd.


Constructor Summary
TestUDFDateAdd()
           
 
Method Summary
 void testFallBack()
          Verify if adding dates across a daylight savings time change from daylight to standard time.
 void testSpringAhead()
          Verify if adding dates across a daylight savings time change from standard to daylight time.
 
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

TestUDFDateAdd

public TestUDFDateAdd()
Method Detail

testFallBack

public void testFallBack()
                  throws Exception
Verify if adding dates across a daylight savings time change from daylight to standard time. The timezone tested is west coast US (PDT/PST) with a 1 hour shift back in time at 02:00 AM on 2009-10-31.

Throws:
Exception

testSpringAhead

public void testSpringAhead()
                     throws Exception
Verify if adding dates across a daylight savings time change from standard to daylight time. The timezone tested is west coast US (PDT/PST) with a 1 hour shift forward in time at 02:00 AM on 2010-03-14.

Throws:
Exception


Copyright © 2013 The Apache Software Foundation