java.lang.Object
junit.framework.Assert
junit.framework.TestCase
junit.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 |
|
| 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 |
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
ZDelimitedTokenizer
public ZDelimitedTokenizer(java.lang.String name)
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