|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.htmlparser.tests.ParserTestCase
org.htmlparser.tests.parserHelperTests.StringParserTest
Field Summary |
Fields inherited from class org.htmlparser.tests.ParserTestCase |
mLexer, node, nodeCount, parser |
Constructor Summary | |
StringParserTest(java.lang.String name)
|
Method Summary | |
void |
testEmptyLines()
|
void |
testLastLineWithOneChar()
Based on a bug report submitted by Cedric Rosa, if the last line contains a single character, Text does not return the string node correctly. |
void |
testStringBeingMissedBug()
This is a bug reported by John Zook (586222), where the first few chars before a remark is being missed, if its on the same line. |
void |
testStringParserBug()
An attempt to reproduce bug 677176, which passes. |
void |
testStringWithEmptyLine()
|
void |
testStringWithLineBreaks()
|
void |
testTagCharsInText()
Bug reported by Roger Sollberger For the following HTML : <a href="http://asgard.ch">[< ASGARD ></a><br> The string node is not correctly identified |
void |
testTextBug1()
The bug being reproduced is this : <HTML><HEAD><TITLE>Google</TITLE> The above line is incorrectly parsed in that, the text Google is missed. |
void |
testTextBug2()
Test string containing link. |
void |
testToHTML()
|
void |
testToPlainTextString()
|
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 |
public StringParserTest(java.lang.String name)
Method Detail |
public void testTextBug1() throws ParserException
ParserException
public void testTextBug2() throws ParserException
ParserException
public void testTagCharsInText() throws ParserException
ParserException
public void testToPlainTextString() throws ParserException
ParserException
public void testToHTML() throws ParserException
ParserException
public void testEmptyLines() throws ParserException
ParserException
public void testStringBeingMissedBug() throws ParserException
ParserException
public void testLastLineWithOneChar() throws ParserException
ParserException
public void testStringWithEmptyLine() throws ParserException
ParserException
public void testStringParserBug() throws java.lang.Exception
java.lang.Exception
public void testStringWithLineBreaks() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |