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

Quick Search    Search Deep

org.htmlparser.tests.parserHelperTests
Class TagParserTest  view TagParserTest download TagParserTest.java

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

public class TagParserTest
extends org.htmlparser.tests.ParserTestCase


Nested Class Summary
(package private)  class TagParserTest.ParsingThread
           
 
Field Summary
private  java.util.Map results
           
private static java.lang.String TEST_HTML
           
private  int testProgress
           
 
Fields inherited from class org.htmlparser.tests.ParserTestCase
node, nodeCount, parser, reader
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TagParserTest(java.lang.String name)
           
 
Method Summary
private  int computeCompletionValue(int numThreads)
           
 void testEmptyTag()
           
 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 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, assertTagEquals, assertType, assertXmlEquals, createParser, createParser, createParser, createParser, parse, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_HTML

private static final java.lang.String TEST_HTML
See Also:
Constant Field Values

results

private java.util.Map results

testProgress

private int testProgress
Constructor Detail

TagParserTest

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

testTagWithQuotes

public void testTagWithQuotes()
                       throws java.lang.Exception

testEmptyTag

public void testEmptyTag()
                  throws java.lang.Exception

testTagWithCloseTagSymbolInAttribute

public void testTagWithCloseTagSymbolInAttribute()
                                          throws org.htmlparser.util.ParserException

testTagWithOpenTagSymbolInAttribute

public void testTagWithOpenTagSymbolInAttribute()
                                         throws org.htmlparser.util.ParserException

testTagWithSingleQuote

public void testTagWithSingleQuote()
                            throws org.htmlparser.util.ParserException

testMultiLine1

public void testMultiLine1()
                    throws org.htmlparser.util.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)


testMultiLine2

public void testMultiLine2()
                    throws org.htmlparser.util.ParserException

testMultiLine3

public void testMultiLine3()
                    throws org.htmlparser.util.ParserException

testMultiLine4

public void testMultiLine4()
                    throws org.htmlparser.util.ParserException

testMultiLine5

public void testMultiLine5()
                    throws org.htmlparser.util.ParserException
Test multiline tag like attribute. See feature request #725749 Handle < and > in multi-line attributes. Only perform this test if it's version 1.4 or higher.


testMultiLine6

public void testMultiLine6()
                    throws org.htmlparser.util.ParserException
Test multiline broken tag like attribute. See feature request #725749 Handle < and > in multi-line attributes. Only perform this test if it's version 1.4 or higher.


testMultiLine7

public void testMultiLine7()
                    throws org.htmlparser.util.ParserException
Test multiline split tag like attribute. See feature request #725749 Handle < and > in multi-line attributes. Only perform this test if it's version 1.4 or higher.


testThreadSafety

public void testThreadSafety()
                      throws java.lang.Exception
Test multiple threads running against the parser. See feature request #736144 Handle multi-threaded operation. Only perform this test if it's version 1.4 or higher.


computeCompletionValue

private int computeCompletionValue(int numThreads)