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

Quick Search    Search Deep

org.htmlparser.tests.tagTests
Class LinkTagTest  view LinkTagTest download LinkTagTest.java

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

public class LinkTagTest
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
LinkTagTest(java.lang.String name)
           
 
Method Summary
 void testLinkNodeBug()
          The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified.
 void testLinkNodeBug2()
          The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified.
 void testLinkNodeBug3()
          The bug being reproduced is this :
When a url ends with a slash, and the link begins with a slash,the parser puts two slashes This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM)
 void testLinkNodeBug4()
          The bug being reproduced is this :
Simple url without index.html, doesent get appended to link This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM)
 void testLinkNodeBug5()
           
 void testLinkNodeBugNullPointerException()
          This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
 void testLinkNodeMailtoBug()
          This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
 void testLinkNodeSingleQuoteBug()
          This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner.
 void testLinkTag()
          The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified.
 void testLinkTagBug()
          The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified.
 void testMailToIsNotAHTTPLink()
          Bug #738504 MailLink != HTTPLink
 void testNullTagBug()
          The bug being reproduced is this :
<A HREF=>Something<A>
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified.
 void testToHTML()
           
 void testToPlainTextString()
           
 void testTypeFtp()
           
 void testTypeHttpLikeLink()
           
 void testTypeHttpLink()
           
 void testTypeHttps()
           
 void testTypeJavaScript()
           
 
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

LinkTagTest

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

testLinkNodeBug

public void testLinkNodeBug()
                     throws org.htmlparser.util.ParserException
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. Creation date: (6/17/2001 4:01:06 PM)


testLinkNodeBug2

public void testLinkNodeBug2()
                      throws org.htmlparser.util.ParserException
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. Creation date: (6/17/2001 4:01:06 PM)


testLinkNodeBug3

public void testLinkNodeBug3()
                      throws org.htmlparser.util.ParserException
The bug being reproduced is this :
When a url ends with a slash, and the link begins with a slash,the parser puts two slashes This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM)


testLinkNodeBug4

public void testLinkNodeBug4()
                      throws org.htmlparser.util.ParserException
The bug being reproduced is this :
Simple url without index.html, doesent get appended to link This bug was submitted by Roget Kjensrud Creation date: (6/17/2001 4:01:06 PM)


testLinkNodeBug5

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

testLinkNodeBugNullPointerException

public void testLinkNodeBugNullPointerException()
                                         throws org.htmlparser.util.ParserException
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner. Creation date: (7/1/2001 2:42:13 PM)


testLinkNodeMailtoBug

public void testLinkNodeMailtoBug()
                           throws org.htmlparser.util.ParserException
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner. Creation date: (7/1/2001 2:42:13 PM)


testLinkNodeSingleQuoteBug

public void testLinkNodeSingleQuoteBug()
                                throws org.htmlparser.util.ParserException
This bug occurs when there is a null pointer exception thrown while scanning a tag using LinkScanner. Creation date: (7/1/2001 2:42:13 PM)


testLinkTag

public void testLinkTag()
                 throws org.htmlparser.util.ParserException
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. Creation date: (6/17/2001 4:01:06 PM)


testLinkTagBug

public void testLinkTagBug()
                    throws org.htmlparser.util.ParserException
The bug being reproduced is this :
<BODY aLink=#ff0000 bgColor=#ffffff link=#0000cc onload=setfocus() text=#000000
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. Creation date: (6/17/2001 4:01:06 PM)


testNullTagBug

public void testNullTagBug()
                    throws org.htmlparser.util.ParserException
The bug being reproduced is this :
<A HREF=>Something<A>
vLink=#551a8b> The above line is incorrectly parsed in that, the BODY tag is not identified. Creation date: (6/17/2001 4:01:06 PM)


testToPlainTextString

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

testToHTML

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

testTypeHttps

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

testTypeFtp

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

testTypeJavaScript

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

testTypeHttpLink

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

testTypeHttpLikeLink

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

testMailToIsNotAHTTPLink

public void testMailToIsNotAHTTPLink()
                              throws org.htmlparser.util.ParserException
Bug #738504 MailLink != HTTPLink