Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

junit.framework
Class ZDelimitedTokenizer  view ZDelimitedTokenizer download ZDelimitedTokenizer.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byjunit.framework.ZDelimitedTokenizer
All Implemented Interfaces:
Test

public class ZDelimitedTokenizer
extends TestCase

A junit test class for net.sourceforge.jbird.io.DelimitedTokenizer.

Since:
J-Bird 0.1.3

Field Summary
static boolean PRINTEM
          Determines whether each expectation and result are printed.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
ZDelimitedTokenizer(java.lang.String name)
           
 
Method Summary
protected  void doIt(java.lang.String data, java.lang.Object[] expectations)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testEmptyQuoteLineTwo()
          Test a quoted element that contains no delimiter.
 void testEscapeQuotes()
          Test quote escapes \" withing quoted string.
 void testInteriorQuotes()
          Test interior quotes such as aaaa,bbb ", "".
 void testQuoteLastItemEndNewline()
          Test quote as last field on line that ends with a newline.
 void testUnEscapedQuotesInQuoted()
          Test unescaped quotes within quoted strings such as "hello there "myrtle" dear".
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRINTEM

public static final boolean PRINTEM
Determines whether each expectation and result are printed. Set to true if you run into trouble and really want to know what's going on.

See Also:
Constant Field Values
Constructor Detail

ZDelimitedTokenizer

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

setUp

protected void setUp()
Description copied from class: TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class TestCase

tearDown

protected void tearDown()
Description copied from class: TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class TestCase

testEmptyQuoteLineTwo

public void testEmptyQuoteLineTwo()
                           throws java.io.IOException
Test a quoted element that contains no delimiter.


testQuoteLastItemEndNewline

public void testQuoteLastItemEndNewline()
                                 throws java.io.IOException
Test quote as last field on line that ends with a newline.


testInteriorQuotes

public void testInteriorQuotes()
                        throws java.io.IOException
Test interior quotes such as aaaa,bbb ", "".


testEscapeQuotes

public void testEscapeQuotes()
                      throws java.io.IOException
Test quote escapes \" withing quoted string.


testUnEscapedQuotesInQuoted

public void testUnEscapedQuotesInQuoted()
                                 throws java.io.IOException
Test unescaped quotes within quoted strings such as "hello there "myrtle" dear". Although these are not expected, the best way to deal with them seems to pass them.


doIt

protected void doIt(java.lang.String data,
                    java.lang.Object[] expectations)
             throws java.io.IOException