jimm.datavision.test
Class DelimParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jimm.datavision.test.DelimParserTest
All Implemented Interfaces:
junit.framework.Test

public class DelimParserTest
extends junit.framework.TestCase

Compares CSV file input with "answers" file. The answers file is tab-delimited and lines that end with a backslash are continued on the next line.

Author:
Jim Menard, jimm@io.com

Field Summary
protected static java.lang.String TEST_ANSWERS
           
protected static java.lang.String TEST_INPUT
           
 
Constructor Summary
DelimParserTest(java.lang.String name)
           
 
Method Summary
protected  java.util.List getNextAnswer(java.io.BufferedReader in)
           
static void main(java.lang.String[] args)
           
protected  void sepTest(java.util.List answer, DelimParser parser)
           
static junit.framework.Test suite()
           
 void testParser()
           
 
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
 

Field Detail

TEST_INPUT

protected static final java.lang.String TEST_INPUT

TEST_ANSWERS

protected static final java.lang.String TEST_ANSWERS
Constructor Detail

DelimParserTest

public DelimParserTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

sepTest

protected void sepTest(java.util.List answer,
                       DelimParser parser)

testParser

public void testParser()

getNextAnswer

protected java.util.List getNextAnswer(java.io.BufferedReader in)
                                throws java.io.IOException
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)