public class TestTimestampWritable
extends junit.framework.TestCase
| Constructor and Description |
|---|
TestTimestampWritable() |
| Modifier and Type | Method and Description |
|---|---|
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() |
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toStringprotected void setUp()
setUp in class junit.framework.TestCasepublic void testReverseNanos()
public void testTimestampsWithinPositiveIntRange()
throws java.io.IOException
java.io.IOExceptionpublic void testTimestampsOutsidePositiveIntRange()
throws java.io.IOException
java.io.IOExceptionpublic void testTimestampsInFullRange()
throws java.io.IOException
java.io.IOExceptionpublic void testToFromDouble()
public void testDecimalToTimestampRandomly()
public void testDecimalToTimestampCornerCases()
public void testSerializationFormatDirectly()
throws java.io.IOException
java.io.IOExceptionpublic void testMaxSize()
public void testMillisToSeconds()
public void testBinarySortable()
Copyright © 2012 The Apache Software Foundation