org.apache.hadoop.hive.serde2
Class TestTCTLSeparatedProtocol

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

public class TestTCTLSeparatedProtocol
extends junit.framework.TestCase

TestTCTLSeparatedProtocol.


Constructor Summary
TestTCTLSeparatedProtocol()
           
 
Method Summary
 void test1ApacheLogFormat()
          Tests a sample apache log format.
 void testNulls()
           
 void testQuotedWrites()
           
 void testReads()
           
 void testShouldThrowRunTimeExceptionIfUnableToInitializeTokenizer()
           
 void testWrites()
           
 
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

TestTCTLSeparatedProtocol

public TestTCTLSeparatedProtocol()
                          throws Exception
Throws:
Exception
Method Detail

testReads

public void testReads()
               throws Exception
Throws:
Exception

testWrites

public void testWrites()
                throws Exception
Throws:
Exception

testQuotedWrites

public void testQuotedWrites()
                      throws Exception
Throws:
Exception

test1ApacheLogFormat

public void test1ApacheLogFormat()
                          throws Exception
Tests a sample apache log format. This is actually better done in general with a more TRegexLike protocol, but for this case, TCTLSeparatedProtocol can do it.

Throws:
Exception

testNulls

public void testNulls()
               throws Exception
Throws:
Exception

testShouldThrowRunTimeExceptionIfUnableToInitializeTokenizer

public void testShouldThrowRunTimeExceptionIfUnableToInitializeTokenizer()
                                                                  throws Exception
Throws:
Exception


Copyright © 2013 The Apache Software Foundation