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

Quick Search    Search Deep

org.htmlparser.tests.scannersTests
Class TitleScannerTest  view TitleScannerTest download TitleScannerTest.java

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

public class TitleScannerTest
extends org.htmlparser.tests.ParserTestCase


Field Summary
 
Fields inherited from class org.htmlparser.tests.ParserTestCase
node, nodeCount, parser, reader
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TitleScannerTest(java.lang.String name)
           
 
Method Summary
 void testDoubleTitleTag()
          If there are duplicates of the title tag, the parser crashes.
 void testIncompleteTitle()
          Testcase to reproduce a bug reported by Cedric Rosa, on not ending the title tag correctly, we would get null pointer exceptions..
 void testNoEndTitleTag()
          Testcase based on Claude Duguay's report.
 void testScan()
           
 void testTitleTagContainsJspTag()
           
 
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
 

Constructor Detail

TitleScannerTest

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

testScan

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

testIncompleteTitle

public void testIncompleteTitle()
                         throws org.htmlparser.util.ParserException
Testcase to reproduce a bug reported by Cedric Rosa, on not ending the title tag correctly, we would get null pointer exceptions..


testDoubleTitleTag

public void testDoubleTitleTag()
                        throws org.htmlparser.util.ParserException
If there are duplicates of the title tag, the parser crashes. This bug was reported by Claude Duguay


testNoEndTitleTag

public void testNoEndTitleTag()
                       throws org.htmlparser.util.ParserException
Testcase based on Claude Duguay's report. This proves that the parser throws exceptions when faced with malformed html


testTitleTagContainsJspTag

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