au.com.bytecode.opencsv
Class CSVWriterTest

java.lang.Object
  extended by au.com.bytecode.opencsv.CSVWriterTest

public class CSVWriterTest
extends Object


Constructor Summary
CSVWriterTest()
           
 
Method Summary
 void correctlyParseNullString()
           
 void correctlyParserNullObject()
           
 void flushQuietlyWillNotThrowException()
           
 void flushWillThrowIOException()
           
 void parseLineWithBothEscapeAndQuoteChar()
           
 void parseLineWithNoEscapeCharAndQuotes()
           
 void testAlternateEscapeChar()
           
 void testAlternateLineFeeds()
           
 void testIntelligentQuotes()
          Tests the ability for the writer to apply quotes only where strings contain the separator, escape, quote or new line characters.
 void testMultiLineResultSetWithHeaders()
           
 void testMultiLineResultSetWithoutHeaders()
           
 void testNestedQuotes()
           
 void testNoQuoteChars()
          Tests the option of having omitting quotes in the output stream.
 void testNoQuoteCharsAndNoEscapeChars()
          Tests the option of having omitting quotes in the output stream.
 void testNoQuotingNoEscaping()
           
 void testNullValues()
          Test null values.
 void testParseLine()
          Tests parsing individual lines.
 void testParseLineWithNoEscapeChar()
          Tests parsing individual lines.
 void testResultSetTrim()
           
 void testResultSetWithHeaders()
           
 void testResultSetWithoutHeaders()
           
 void testStreamFlushing()
           
 void testWriteAll()
          Test writing to a list.
 void testWriteAllObjects()
          Test writing from a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVWriterTest

public CSVWriterTest()
Method Detail

correctlyParseNullString

public void correctlyParseNullString()

correctlyParserNullObject

public void correctlyParserNullObject()

testParseLine

public void testParseLine()
                   throws IOException
Tests parsing individual lines.

Throws:
IOException - if the reader fails.

parseLineWithBothEscapeAndQuoteChar

public void parseLineWithBothEscapeAndQuoteChar()
                                         throws IOException
Throws:
IOException

testParseLineWithNoEscapeChar

public void testParseLineWithNoEscapeChar()
                                   throws IOException
Tests parsing individual lines.

Throws:
IOException - if the reader fails.

parseLineWithNoEscapeCharAndQuotes

public void parseLineWithNoEscapeCharAndQuotes()
                                        throws IOException
Throws:
IOException

testWriteAll

public void testWriteAll()
                  throws IOException
Test writing to a list.

Throws:
IOException - if the reader fails.

testWriteAllObjects

public void testWriteAllObjects()
                         throws IOException
Test writing from a list.

Throws:
IOException - if the reader fails.

testNoQuoteChars

public void testNoQuoteChars()
                      throws IOException
Tests the option of having omitting quotes in the output stream.

Throws:
IOException - if bad things happen

testNoQuoteCharsAndNoEscapeChars

public void testNoQuoteCharsAndNoEscapeChars()
                                      throws IOException
Tests the option of having omitting quotes in the output stream.

Throws:
IOException - if bad things happen

testIntelligentQuotes

public void testIntelligentQuotes()
Tests the ability for the writer to apply quotes only where strings contain the separator, escape, quote or new line characters.


testNullValues

public void testNullValues()
                    throws IOException
Test null values.

Throws:
IOException - if bad things happen

testStreamFlushing

public void testStreamFlushing()
                        throws IOException
Throws:
IOException

flushWillThrowIOException

public void flushWillThrowIOException()
                               throws IOException
Throws:
IOException

flushQuietlyWillNotThrowException

public void flushQuietlyWillNotThrowException()

testAlternateEscapeChar

public void testAlternateEscapeChar()

testNoQuotingNoEscaping

public void testNoQuotingNoEscaping()

testNestedQuotes

public void testNestedQuotes()

testAlternateLineFeeds

public void testAlternateLineFeeds()

testResultSetWithHeaders

public void testResultSetWithHeaders()
                              throws SQLException,
                                     IOException
Throws:
SQLException
IOException

testMultiLineResultSetWithHeaders

public void testMultiLineResultSetWithHeaders()
                                       throws SQLException,
                                              IOException
Throws:
SQLException
IOException

testResultSetWithoutHeaders

public void testResultSetWithoutHeaders()
                                 throws SQLException,
                                        IOException
Throws:
SQLException
IOException

testMultiLineResultSetWithoutHeaders

public void testMultiLineResultSetWithoutHeaders()
                                          throws SQLException,
                                                 IOException
Throws:
SQLException
IOException

testResultSetTrim

public void testResultSetTrim()
                       throws SQLException,
                              IOException
Throws:
SQLException
IOException


Copyright © 2011. All Rights Reserved.