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

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

public class TestUDFDateSub
extends junit.framework.TestCase

JUnit test for UDFDateSub.


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

TestUDFDateSub

public TestUDFDateSub()
Method Detail

testFallBack

public void testFallBack()
                  throws Exception
Verify if subtracting 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 subtracting 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