au.com.bytecode.opencsv
Class CSVParserTest
java.lang.Object
au.com.bytecode.opencsv.CSVParserTest
public class CSVParserTest
- extends Object
Method Summary |
void |
anIOExceptionThrownifStringEndsInsideAQuotedString()
|
void |
parseEmptyElements()
|
void |
parseLineMultiAllowsQuotesAcrossMultipleLines()
|
void |
parseMultiLinedQuoted()
|
void |
parseMultipleQuotes()
|
void |
parseQuotedQuoteCharacters()
|
void |
parseQuotedStringWithCommas()
|
void |
parseQuotedStringWithDefinedSeperator()
|
void |
parseQuotedStringWithDefinedSeperatorAndQuote()
|
void |
parseSimpleString()
|
void |
parseTrickyString()
|
void |
pendingIsClearedAfterCallToParseLine()
|
void |
returnNullWhenNullPassedIn()
|
void |
returnPendingIfNullIsPassedIntoParseLineMulti()
|
void |
setUp()
|
void |
testADoubleQuoteAsDataElement()
|
void |
testAMultiLineInsideQuotes()
|
void |
testEscapedDoubleQuoteAsDataElement()
|
void |
testIssue2263439()
Test issue 2263439 where an escaped quote was causing the parse to fail. |
void |
testIssue2726363()
Test issue 2726363
Data given:
"804503689","London",""London""shop","address","116.453182","39.918884"
"453074125","NewYork","brief","address"","121.514683","31.228511" |
void |
testIssue2859181()
Test issue 2859181 where an escaped character before a character
that did not need escaping was causing the parse to fail. |
void |
testParsedLineWithInternalQuota()
Tests quotes in the middle of an element. |
void |
testParseLine()
|
void |
testStrictQuoteSimple()
|
void |
testStrictQuoteWithGarbage()
|
void |
testStrictQuoteWithSpacesAndTabs()
|
void |
validateEscapeStringBeforeRealTest()
|
void |
whichCharactersAreEscapable()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVParserTest
public CSVParserTest()
setUp
public void setUp()
testParseLine
public void testParseLine()
throws Exception
- Throws:
Exception
parseSimpleString
public void parseSimpleString()
throws IOException
- Throws:
IOException
testParsedLineWithInternalQuota
public void testParsedLineWithInternalQuota()
throws IOException
- Tests quotes in the middle of an element.
- Throws:
IOException
- if bad things happen
parseQuotedStringWithCommas
public void parseQuotedStringWithCommas()
throws IOException
- Throws:
IOException
parseQuotedStringWithDefinedSeperator
public void parseQuotedStringWithDefinedSeperator()
throws IOException
- Throws:
IOException
parseQuotedStringWithDefinedSeperatorAndQuote
public void parseQuotedStringWithDefinedSeperatorAndQuote()
throws IOException
- Throws:
IOException
parseEmptyElements
public void parseEmptyElements()
throws IOException
- Throws:
IOException
parseMultiLinedQuoted
public void parseMultiLinedQuoted()
throws IOException
- Throws:
IOException
testADoubleQuoteAsDataElement
public void testADoubleQuoteAsDataElement()
throws IOException
- Throws:
IOException
testEscapedDoubleQuoteAsDataElement
public void testEscapedDoubleQuoteAsDataElement()
throws IOException
- Throws:
IOException
parseQuotedQuoteCharacters
public void parseQuotedQuoteCharacters()
throws IOException
- Throws:
IOException
parseMultipleQuotes
public void parseMultipleQuotes()
throws IOException
- Throws:
IOException
parseTrickyString
public void parseTrickyString()
throws IOException
- Throws:
IOException
testAMultiLineInsideQuotes
public void testAMultiLineInsideQuotes()
throws IOException
- Throws:
IOException
testStrictQuoteSimple
public void testStrictQuoteSimple()
throws IOException
- Throws:
IOException
testStrictQuoteWithSpacesAndTabs
public void testStrictQuoteWithSpacesAndTabs()
throws IOException
- Throws:
IOException
testStrictQuoteWithGarbage
public void testStrictQuoteWithGarbage()
throws IOException
- Throws:
IOException
testIssue2263439
public void testIssue2263439()
throws IOException
- Test issue 2263439 where an escaped quote was causing the parse to fail.
Special thanks to Chris Morris for fixing this (id 1979054)
- Throws:
IOException
testIssue2859181
public void testIssue2859181()
throws IOException
- Test issue 2859181 where an escaped character before a character
that did not need escaping was causing the parse to fail.
- Throws:
IOException
testIssue2726363
public void testIssue2726363()
throws IOException
- Test issue 2726363
Data given:
"804503689","London",""London""shop","address","116.453182","39.918884"
"453074125","NewYork","brief","address"","121.514683","31.228511"
- Throws:
IOException
anIOExceptionThrownifStringEndsInsideAQuotedString
public void anIOExceptionThrownifStringEndsInsideAQuotedString()
throws IOException
- Throws:
IOException
parseLineMultiAllowsQuotesAcrossMultipleLines
public void parseLineMultiAllowsQuotesAcrossMultipleLines()
throws IOException
- Throws:
IOException
pendingIsClearedAfterCallToParseLine
public void pendingIsClearedAfterCallToParseLine()
throws IOException
- Throws:
IOException
returnPendingIfNullIsPassedIntoParseLineMulti
public void returnPendingIfNullIsPassedIntoParseLineMulti()
throws IOException
- Throws:
IOException
returnNullWhenNullPassedIn
public void returnNullWhenNullPassedIn()
throws IOException
- Throws:
IOException
validateEscapeStringBeforeRealTest
public void validateEscapeStringBeforeRealTest()
whichCharactersAreEscapable
public void whichCharactersAreEscapable()
Copyright © 2012. All Rights Reserved.