net.sf.jsefa.test.csv
Class QuoteModeTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.jsefa.test.csv.QuoteModeTest
All Implemented Interfaces:
junit.framework.Test

public class QuoteModeTest
extends junit.framework.TestCase

Tests to test the CSV serialization/deserialization with different quote mode.

Author:
Norman Lahme-Huetig

Constructor Summary
QuoteModeTest()
           
 
Method Summary
 void testDefault()
          Test with the default mode (initially set to "on demand") for the case the quotes are needed.
 void testOnDemandNeeded()
          Test with mode "on demand" for the case the quotes are needed.
 void testOnDemandNeededStartingWithQuoteChar()
          Test with mode "on demand" for the case the quotes are needed and the field starts with a quote char.
 void testOnDemandNotNeeded()
          Test with mode "on demand" for the case the quotes are not needed.
 void testQuoteAlways()
          Test with mode "always" for the case the quotes are needed.
 void testQuoteAlwaysButNotNeeded()
          Test with mode "always" for the case the quotes are not needed.
 void testQuoteAlwaysWithMultipleLineBreaks()
          Test with mode "always" and multiple line breaks within one field.
 void testQuoteDefaultAsAlways()
          Test with mode "default" where the default is set to "always" via the configuration.
 void testQuoteNeverWithMultipleLineBreaks()
          Test with mode "never" and multiple line breaks within one field.
 void testQuoteNeverWithSpecialRecordDelimiter()
          Test with mode "never" and a special record delimiter.
 
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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuoteModeTest

public QuoteModeTest()
Method Detail

testDefault

public void testDefault()
Test with the default mode (initially set to "on demand") for the case the quotes are needed.


testQuoteAlways

public void testQuoteAlways()
Test with mode "always" for the case the quotes are needed.


testQuoteAlwaysButNotNeeded

public void testQuoteAlwaysButNotNeeded()
Test with mode "always" for the case the quotes are not needed.


testOnDemandNeeded

public void testOnDemandNeeded()
Test with mode "on demand" for the case the quotes are needed.


testOnDemandNeededStartingWithQuoteChar

public void testOnDemandNeededStartingWithQuoteChar()
Test with mode "on demand" for the case the quotes are needed and the field starts with a quote char.


testOnDemandNotNeeded

public void testOnDemandNotNeeded()
Test with mode "on demand" for the case the quotes are not needed.


testQuoteDefaultAsAlways

public void testQuoteDefaultAsAlways()
Test with mode "default" where the default is set to "always" via the configuration.


testQuoteAlwaysWithMultipleLineBreaks

public void testQuoteAlwaysWithMultipleLineBreaks()
Test with mode "always" and multiple line breaks within one field.


testQuoteNeverWithMultipleLineBreaks

public void testQuoteNeverWithMultipleLineBreaks()
Test with mode "never" and multiple line breaks within one field.


testQuoteNeverWithSpecialRecordDelimiter

public void testQuoteNeverWithSpecialRecordDelimiter()
Test with mode "never" and a special record delimiter.



Copyright © 2014. All rights reserved.