public class StringParserTest extends ParserTestCase
构造器和说明 |
---|
StringParserTest(java.lang.String name) |
限定符和类型 | 方法和说明 |
---|---|
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() |
assertNodeCount, assertSameType, assertStringEquals, assertSuperType, assertTagEquals, assertType, assertXmlEquals, failWithMessage, getParser, main, parseAndAssertNodeCount, parseNodes, removeEscapeCharacters, setParser, testFake
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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
public void testTextBug1() throws ParserException
ParserException
- ParserExceptionpublic void testTextBug2() throws ParserException
ParserException
- ParserExceptionpublic void testTagCharsInText() throws ParserException
ParserException
- ParserExceptionpublic void testToPlainTextString() throws ParserException
ParserException
public void testToHTML() throws ParserException
ParserException
public void testEmptyLines() throws ParserException
ParserException
public void testStringBeingMissedBug() throws ParserException
ParserException
- ParserExceptionpublic void testLastLineWithOneChar() throws ParserException
ParserException
- ParserExceptionpublic void testStringWithEmptyLine() throws ParserException
ParserException
public void testStringParserBug() throws java.lang.Exception
java.lang.Exception
- Exceptionpublic void testStringWithLineBreaks() throws java.lang.Exception
java.lang.Exception