org.htmlparser.tests.lexerTests
Class TagTests

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.htmlparser.tests.ParserTestCase
              extended byorg.htmlparser.tests.lexerTests.TagTests
All Implemented Interfaces:
junit.framework.Test

public class TagTests
extends ParserTestCase


Field Summary
 
Fields inherited from class org.htmlparser.tests.ParserTestCase
mLexer, node, nodeCount, parser
 
Constructor Summary
TagTests(java.lang.String name)
           
 
Method Summary
 void testEmptyTag()
           
 void testMissingValueToHTML()
          Test the toHTML method for a missing value attribute.
 void testMultiLine1()
          The following multi line test cases are from bug #725749 Parser does not handle < and > in multi-line attributes submitted by Joe Robins (zorblak)
 void testMultiLine2()
           
 void testMultiLine3()
           
 void testMultiLine4()
           
 void testMultiLine5()
          Test multiline tag like attribute.
 void testMultiLine6()
          Test multiline broken tag like attribute.
 void testMultiLine7()
          Test multiline split tag like attribute.
 void testStandAloneToHTML()
          Test the toHTML method for a standalone attribute.
 void testTagWithCloseTagSymbolInAttribute()
           
 void testTagWithOpenTagSymbolInAttribute()
           
 void testTagWithQuotes()
           
 void testTagWithSingleQuote()
           
 void testThreadSafety()
          Test multiple threads running against the parser.
 
Methods inherited from class org.htmlparser.tests.ParserTestCase
assertHiddenIDTagPresent, assertNodeCount, assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, failWithMessage, getParser, main, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TagTests

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

testTagWithQuotes

public void testTagWithQuotes()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testEmptyTag

public void testEmptyTag()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testTagWithCloseTagSymbolInAttribute

public void testTagWithCloseTagSymbolInAttribute()
                                          throws ParserException
Throws:
ParserException

testTagWithOpenTagSymbolInAttribute

public void testTagWithOpenTagSymbolInAttribute()
                                         throws ParserException
Throws:
ParserException

testTagWithSingleQuote

public void testTagWithSingleQuote()
                            throws ParserException
Throws:
ParserException

testMultiLine1

public void testMultiLine1()
                    throws ParserException
The following multi line test cases are from bug #725749 Parser does not handle < and > in multi-line attributes submitted by Joe Robins (zorblak)

Throws:
ParserException

testMultiLine2

public void testMultiLine2()
                    throws ParserException
Throws:
ParserException

testMultiLine3

public void testMultiLine3()
                    throws ParserException
Throws:
ParserException

testMultiLine4

public void testMultiLine4()
                    throws ParserException
Throws:
ParserException

testMultiLine5

public void testMultiLine5()
                    throws ParserException
Test multiline tag like attribute. See feature request #725749 Handle < and > in multi-line attributes.

Throws:
ParserException

testMultiLine6

public void testMultiLine6()
                    throws ParserException
Test multiline broken tag like attribute. See feature request #725749 Handle < and > in multi-line attributes.

Throws:
ParserException

testMultiLine7

public void testMultiLine7()
                    throws ParserException
Test multiline split tag like attribute. See feature request #725749 Handle < and > in multi-line attributes.

Throws:
ParserException

testThreadSafety

public void testThreadSafety()
                      throws java.lang.Exception
Test multiple threads running against the parser. See feature request #736144 Handle multi-threaded operation.

Throws:
java.lang.Exception

testStandAloneToHTML

public void testStandAloneToHTML()
                          throws ParserException
Test the toHTML method for a standalone attribute.

Throws:
ParserException

testMissingValueToHTML

public void testMissingValueToHTML()
                            throws ParserException
Test the toHTML method for a missing value attribute.

Throws:
ParserException