org.dbunit.dataset.csv
Class CsvParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.dbunit.dataset.csv.CsvParserTest
All Implemented Interfaces:
junit.framework.Test

public class CsvParserTest
extends junit.framework.TestCase


Constructor Summary
CsvParserTest()
           
 
Method Summary
protected  void setUp()
           
 void testAFieldCanContainANewLine()
           
 void testAFileCanContainFieldWithNewLine()
           
 void testCanParseNonQuotedStrings()
           
 void testDontAcceptIncompleteFields()
           
 void testRaiseACSVParserExceptonWhenParsingAnEmptyFile()
           
 void testRaiseACSVParserExceptonWhenParsingFileWithDifferentNumberOfColumns()
           
 void testSample()
           
 void testWhitespacePreservedOnQuotedStrings()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CsvParserTest

public CsvParserTest()
Method Detail

testCanParseNonQuotedStrings

public void testCanParseNonQuotedStrings()
                                  throws PipelineException,
                                         IllegalInputCharacterException
Throws:
PipelineException
IllegalInputCharacterException

testAFieldCanContainANewLine

public void testAFieldCanContainANewLine()
                                  throws PipelineException,
                                         IllegalInputCharacterException
Throws:
PipelineException
IllegalInputCharacterException

testDontAcceptIncompleteFields

public void testDontAcceptIncompleteFields()
                                    throws PipelineException,
                                           IllegalInputCharacterException
Throws:
PipelineException
IllegalInputCharacterException

testAFileCanContainFieldWithNewLine

public void testAFileCanContainFieldWithNewLine()
                                         throws IOException,
                                                CsvParserException
Throws:
IOException
CsvParserException

testRaiseACSVParserExceptonWhenParsingAnEmptyFile

public void testRaiseACSVParserExceptonWhenParsingAnEmptyFile()
                                                       throws IOException
Throws:
IOException

testRaiseACSVParserExceptonWhenParsingFileWithDifferentNumberOfColumns

public void testRaiseACSVParserExceptonWhenParsingFileWithDifferentNumberOfColumns()
                                                                            throws IllegalInputCharacterException,
                                                                                   IOException,
                                                                                   PipelineException
Throws:
IllegalInputCharacterException
IOException
PipelineException

testSample

public void testSample()
                throws Exception
Throws:
Exception

testWhitespacePreservedOnQuotedStrings

public void testWhitespacePreservedOnQuotedStrings()
                                            throws PipelineException,
                                                   IllegalInputCharacterException
Throws:
PipelineException
IllegalInputCharacterException

setUp

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


Copyright © 2002-2012. All Rights Reserved.