org.apache.hadoop.hive.serde2.io
Class TestTimestampWritable

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.hadoop.hive.serde2.io.TestTimestampWritable
All Implemented Interfaces:
junit.framework.Test

public class TestTimestampWritable
extends junit.framework.TestCase


Constructor Summary
TestTimestampWritable()
           
 
Method Summary
protected  void setUp()
           
 void testBinarySortable()
           
 void testDecimalToTimestampCornerCases()
           
 void testDecimalToTimestampRandomly()
           
 void testMaxSize()
           
 void testMillisToSeconds()
           
 void testReverseNanos()
           
 void testSerializationFormatDirectly()
           
 void testTimestampsInFullRange()
           
 void testTimestampsOutsidePositiveIntRange()
          Test timestamps that don't necessarily fit between 1970 and 2038.
 void testTimestampsWithinPositiveIntRange()
          Test serializing and deserializing timestamps that can be represented by a number of seconds from 0 to 2147483647 since the UNIX epoch.
 void testToFromDouble()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestTimestampWritable

public TestTimestampWritable()
Method Detail

setUp

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

testReverseNanos

public void testReverseNanos()

testTimestampsWithinPositiveIntRange

public void testTimestampsWithinPositiveIntRange()
                                          throws IOException
Test serializing and deserializing timestamps that can be represented by a number of seconds from 0 to 2147483647 since the UNIX epoch.

Throws:
IOException

testTimestampsOutsidePositiveIntRange

public void testTimestampsOutsidePositiveIntRange()
                                           throws IOException
Test timestamps that don't necessarily fit between 1970 and 2038. This depends on HIVE-4525 being fixed.

Throws:
IOException

testTimestampsInFullRange

public void testTimestampsInFullRange()
                               throws IOException
Throws:
IOException

testToFromDouble

public void testToFromDouble()

testDecimalToTimestampRandomly

public void testDecimalToTimestampRandomly()

testDecimalToTimestampCornerCases

public void testDecimalToTimestampCornerCases()

testSerializationFormatDirectly

public void testSerializationFormatDirectly()
                                     throws IOException
Throws:
IOException

testMaxSize

public void testMaxSize()

testMillisToSeconds

public void testMillisToSeconds()

testBinarySortable

public void testBinarySortable()


Copyright © 2012 The Apache Software Foundation