test.util
Class TextParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.util.TextParserTest
All Implemented Interfaces:
junit.framework.Test

public class TextParserTest
extends junit.framework.TestCase

Checks the TextParser class with three types of tests:
Method- Checks that individual methods perform as expected on their javadoc example and situations particular to them.
Common- Performs full conversion between complex strings and data structures.
Content- Checks that all methods either perform or throw exceptions upon certain types of content.

Version:
May 28, 2007

Constructor Summary
TextParserTest()
           
 
Method Summary
static void main(String[] args)
           
 void testCommon_escapedCharacters()
           
 void testCommon_generalContent()
           
 void testContent_empty()
           
 void testContent_emptyDivider()
           
 void testContent_emptyString()
           
 void testContent_solitaryDivider()
           
 void testLabels_javadocExample()
           
 void testLineDivisions_endingsDivider()
           
 void testLineDivisions_javadocExample()
           
 void testSubsections_javadocExample()
           
 void testSubsections_nullEncoding()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextParserTest

public TextParserTest()
Method Detail

main

public static void main(String[] args)

testLabels_javadocExample

public void testLabels_javadocExample()

testSubsections_javadocExample

public void testSubsections_javadocExample()

testSubsections_nullEncoding

public void testSubsections_nullEncoding()

testLineDivisions_javadocExample

public void testLineDivisions_javadocExample()

testLineDivisions_endingsDivider

public void testLineDivisions_endingsDivider()

testCommon_generalContent

public void testCommon_generalContent()

testCommon_escapedCharacters

public void testCommon_escapedCharacters()

testContent_empty

public void testContent_empty()

testContent_emptyString

public void testContent_emptyString()

testContent_solitaryDivider

public void testContent_solitaryDivider()

testContent_emptyDivider

public void testContent_emptyDivider()