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

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

public class TestUDFDateDiff
extends junit.framework.TestCase

JUnit test for UDFDateDiff.


Constructor Summary
TestUDFDateDiff()
           
 
Method Summary
 void testDaylightChange()
          Verify differences of dates crossing a daylight savings time change are correct.
 
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

TestUDFDateDiff

public TestUDFDateDiff()
Method Detail

testDaylightChange

public void testDaylightChange()
                        throws Exception
Verify differences of dates crossing a daylight savings time change are correct. 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 and a 1 hour shift forward in time at 02:00 AM on 2010-03-14.

Throws:
Exception


Copyright © 2013 The Apache Software Foundation