edu.rice.cs.util
Class BalancingStreamTokenizerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.util.BalancingStreamTokenizerTest
All Implemented Interfaces:
junit.framework.Test

public class BalancingStreamTokenizerTest
extends junit.framework.TestCase

Tests for a class to tokenize a stream while balancing quoting characters.

Version:
$Id: BalancingStreamTokenizerTest.java 5439 2011-08-11 17:13:04Z rcartwright $
Author:
Mathias Ricken

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
junit.framework.TestCase.WrappedException
 
Constructor Summary
BalancingStreamTokenizerTest()
           
 
Method Summary
(package private)  BalancingStreamTokenizer make(String s)
           
(package private)  BalancingStreamTokenizer make(String s, Character c)
           
 void testAddKeywordQuotes()
           
 void testAddKeywordWhitespace()
           
 void testAddNewQuotes()
           
 void testAddQuotesRepeat()
           
 void testAddQuotesWhitespace()
           
 void testCopyConstructor()
           
 void testDollarEscapedQuoted()
           
 void testDollarEscapedQuoted2()
           
 void testDollarEscapeQuoted()
           
 void testDollarNestedQuoted()
           
 void testDollarNestedQuotedKeywords()
           
 void testDollarNestedQuotedKeywordsWSSignificant()
           
 void testDollarQuoted()
           
 void testEscapeAtFrontBeforeKeyword()
           
 void testEscapeAtFrontBeforeNormal()
           
 void testEscapeAtFrontBeforeQuote()
           
 void testEscapeAtFrontBeforeWS()
           
 void testEscapeDollarNestedQuoted()
           
 void testEscapeDollarNestedQuotedKeywords()
           
 void testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant()
           
 void testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant2()
           
 void testEscapeDollarNestedQuotedKeywordsWSSignificant()
           
 void testEscapeDollarQuoted()
           
 void testEscapedQuoted()
           
 void testEscapeNestedQuoted()
           
 void testEscapeNestedQuotedNW()
           
 void testEscapePipeDollarNestedQuoted()
           
 void testEscapePipeDollarNestedQuotedKeywords()
           
 void testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant()
           
 void testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant2()
           
 void testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant()
           
 void testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant2()
           
 void testEscapePipeDollarNestedQuotedKeywordsWSSignificant()
           
 void testEscapePipeDollarQuoted()
           
 void testEscapePipeNestedQuoted()
           
 void testEscapePipeNestedQuotedNW()
           
 void testEscapePipeQuoted()
           
 void testEscapePipeQuotedNW()
           
 void testEscapePipeSimple()
           
 void testEscapePipeSimple2()
           
 void testEscapePipeSimple3()
           
 void testEscapePipeSimple4()
           
 void testEscapeQuoted()
           
 void testEscapeQuotedNW()
           
 void testEscapeSimple()
           
 void testEscapeSimple2()
           
 void testEscapeSimple3()
           
 void testEscapeSimple4()
           
 void testEscapeWhitespace()
           
 void testEscapeWhitespaceRange()
           
 void testFindMatchKeywords()
           
 void testNestedQuoted()
           
 void testNestedQuotedNW()
           
 void testNonMatchingQuotes()
           
 void testQuoted()
           
 void testQuotedNW()
           
 void testQuoteEscapeQuoted()
           
 void testSimple()
           
 void testThreeQuoteCurlySetup()
           
 void testThreeQuoteSetup()
           
 void testTwoQuoteCurlySetup()
           
 void testWhitespaceFunction()
           
 void testWhitespaceKeyword()
           
 void testWhitespaceKeywordsQuotes()
           
 void testWordCharKeyword()
           
 void testWordCharsFunction()
           
 void testWordRange()
           
 void testWordRangeKeywordsQuotes()
           
 
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

BalancingStreamTokenizerTest

public BalancingStreamTokenizerTest()
Method Detail

make

BalancingStreamTokenizer make(String s)

make

BalancingStreamTokenizer make(String s,
                              Character c)

testCopyConstructor

public void testCopyConstructor()
                         throws IOException
Throws:
IOException

testSimple

public void testSimple()
                throws IOException
Throws:
IOException

testQuoted

public void testQuoted()
                throws IOException
Throws:
IOException

testNestedQuoted

public void testNestedQuoted()
                      throws IOException
Throws:
IOException

testQuotedNW

public void testQuotedNW()
                  throws IOException
Throws:
IOException

testNestedQuotedNW

public void testNestedQuotedNW()
                        throws IOException
Throws:
IOException

testThreeQuoteSetup

public void testThreeQuoteSetup()
                         throws IOException
Throws:
IOException

testTwoQuoteCurlySetup

public void testTwoQuoteCurlySetup()
                            throws IOException
Throws:
IOException

testThreeQuoteCurlySetup

public void testThreeQuoteCurlySetup()
                              throws IOException
Throws:
IOException

testDollarQuoted

public void testDollarQuoted()
                      throws IOException
Throws:
IOException

testWordRange

public void testWordRange()
                   throws IOException
Throws:
IOException

testWordRangeKeywordsQuotes

public void testWordRangeKeywordsQuotes()
                                 throws IOException
Throws:
IOException

testWhitespaceKeywordsQuotes

public void testWhitespaceKeywordsQuotes()
                                  throws IOException
Throws:
IOException

testWordCharKeyword

public void testWordCharKeyword()
                         throws IOException
Throws:
IOException

testWhitespaceKeyword

public void testWhitespaceKeyword()
                           throws IOException
Throws:
IOException

testFindMatchKeywords

public void testFindMatchKeywords()
                           throws IOException
Throws:
IOException

testEscapeWhitespaceRange

public void testEscapeWhitespaceRange()
                               throws IOException
Throws:
IOException

testEscapeWhitespace

public void testEscapeWhitespace()
                          throws IOException
Throws:
IOException

testNonMatchingQuotes

public void testNonMatchingQuotes()
                           throws IOException
Throws:
IOException

testDollarNestedQuoted

public void testDollarNestedQuoted()
                            throws IOException
Throws:
IOException

testDollarNestedQuotedKeywords

public void testDollarNestedQuotedKeywords()
                                    throws IOException
Throws:
IOException

testDollarNestedQuotedKeywordsWSSignificant

public void testDollarNestedQuotedKeywordsWSSignificant()
                                                 throws IOException
Throws:
IOException

testAddKeywordWhitespace

public void testAddKeywordWhitespace()

testAddKeywordQuotes

public void testAddKeywordQuotes()

testWhitespaceFunction

public void testWhitespaceFunction()
                            throws IOException
Throws:
IOException

testWordCharsFunction

public void testWordCharsFunction()
                           throws IOException
Throws:
IOException

testAddQuotesWhitespace

public void testAddQuotesWhitespace()

testAddQuotesRepeat

public void testAddQuotesRepeat()

testAddNewQuotes

public void testAddNewQuotes()
                      throws IOException
Throws:
IOException

testEscapeSimple

public void testEscapeSimple()
                      throws IOException
Throws:
IOException

testEscapeSimple2

public void testEscapeSimple2()
                       throws IOException
Throws:
IOException

testEscapeSimple3

public void testEscapeSimple3()
                       throws IOException
Throws:
IOException

testEscapeSimple4

public void testEscapeSimple4()
                       throws IOException
Throws:
IOException

testEscapeAtFrontBeforeWS

public void testEscapeAtFrontBeforeWS()
                               throws IOException
Throws:
IOException

testEscapeAtFrontBeforeQuote

public void testEscapeAtFrontBeforeQuote()
                                  throws IOException
Throws:
IOException

testEscapeAtFrontBeforeKeyword

public void testEscapeAtFrontBeforeKeyword()
                                    throws IOException
Throws:
IOException

testEscapeAtFrontBeforeNormal

public void testEscapeAtFrontBeforeNormal()
                                   throws IOException
Throws:
IOException

testEscapeQuoted

public void testEscapeQuoted()
                      throws IOException
Throws:
IOException

testEscapeNestedQuoted

public void testEscapeNestedQuoted()
                            throws IOException
Throws:
IOException

testEscapeQuotedNW

public void testEscapeQuotedNW()
                        throws IOException
Throws:
IOException

testEscapeNestedQuotedNW

public void testEscapeNestedQuotedNW()
                              throws IOException
Throws:
IOException

testEscapeDollarQuoted

public void testEscapeDollarQuoted()
                            throws IOException
Throws:
IOException

testEscapeDollarNestedQuoted

public void testEscapeDollarNestedQuoted()
                                  throws IOException
Throws:
IOException

testEscapeDollarNestedQuotedKeywords

public void testEscapeDollarNestedQuotedKeywords()
                                          throws IOException
Throws:
IOException

testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant

public void testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant()
                                                                 throws IOException
Throws:
IOException

testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant2

public void testEscapeDollarNestedQuotedKeywordsWithEscapeWSSignificant2()
                                                                  throws IOException
Throws:
IOException

testEscapeDollarNestedQuotedKeywordsWSSignificant

public void testEscapeDollarNestedQuotedKeywordsWSSignificant()
                                                       throws IOException
Throws:
IOException

testEscapePipeSimple

public void testEscapePipeSimple()
                          throws IOException
Throws:
IOException

testEscapePipeSimple2

public void testEscapePipeSimple2()
                           throws IOException
Throws:
IOException

testEscapePipeSimple3

public void testEscapePipeSimple3()
                           throws IOException
Throws:
IOException

testEscapePipeSimple4

public void testEscapePipeSimple4()
                           throws IOException
Throws:
IOException

testEscapePipeQuoted

public void testEscapePipeQuoted()
                          throws IOException
Throws:
IOException

testEscapePipeNestedQuoted

public void testEscapePipeNestedQuoted()
                                throws IOException
Throws:
IOException

testEscapePipeQuotedNW

public void testEscapePipeQuotedNW()
                            throws IOException
Throws:
IOException

testEscapePipeNestedQuotedNW

public void testEscapePipeNestedQuotedNW()
                                  throws IOException
Throws:
IOException

testEscapePipeDollarQuoted

public void testEscapePipeDollarQuoted()
                                throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuoted

public void testEscapePipeDollarNestedQuoted()
                                      throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywords

public void testEscapePipeDollarNestedQuotedKeywords()
                                              throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant

public void testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant()
                                                                     throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant2

public void testEscapePipeDollarNestedQuotedKeywordsWithEscapeWSSignificant2()
                                                                      throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant

public void testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant()
                                                                      throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant2

public void testEscapePipeDollarNestedQuotedKeywordsWithEscape2WSSignificant2()
                                                                       throws IOException
Throws:
IOException

testEscapePipeDollarNestedQuotedKeywordsWSSignificant

public void testEscapePipeDollarNestedQuotedKeywordsWSSignificant()
                                                           throws IOException
Throws:
IOException

testDollarEscapeQuoted

public void testDollarEscapeQuoted()
                            throws IOException
Throws:
IOException

testQuoteEscapeQuoted

public void testQuoteEscapeQuoted()
                           throws IOException
Throws:
IOException

testDollarEscapedQuoted

public void testDollarEscapedQuoted()
                             throws IOException
Throws:
IOException

testDollarEscapedQuoted2

public void testDollarEscapedQuoted2()
                              throws IOException
Throws:
IOException

testEscapedQuoted

public void testEscapedQuoted()
                       throws IOException
Throws:
IOException