|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.htmlparser.tests.ParserTestCase org.htmlparser.tests.utilTests.BeanTest
Field Summary |
Fields inherited from class org.htmlparser.tests.ParserTestCase |
mLexer, node, nodeCount, parser |
Constructor Summary | |
BeanTest(java.lang.String name)
|
Method Summary | |
protected void |
check(StringBean bean,
java.lang.String html,
java.lang.String text)
Makes sure that the bean returns text when passed the html. |
protected byte[] |
pickle(java.lang.Object object)
|
void |
testCollapsed1()
Test no text returns empty string. |
void |
testCollapsed2()
Test multiple whitespace returns empty string. |
void |
testCollapsed3()
Test text preceded or followed by whitespace returns just text. |
void |
testLinkBeanListener()
|
void |
testOutputWithoutPreAndAnyTagPlusTextWithWhitespace()
|
void |
testOutputWithPreAndAnyTag()
|
void |
testOutputWithPreAndAnyTagPlusText()
|
void |
testOutputWithPreAndAnyTagPlusTextWithWhitespace()
|
void |
testOutputWithPreTags()
Test text including a "pre" tag |
void |
testOutputWithScriptTags()
Test text including a "script" tag |
void |
testSerializable()
|
void |
testSerializableLinkBean()
|
void |
testSerializableScanners()
|
void |
testSerializableStringBean()
|
void |
testStringBeanListener()
|
void |
testZeroArgLexerConstructor()
|
void |
testZeroArgPageConstructor()
|
void |
testZeroArgParserConstructor()
|
protected java.lang.Object |
unpickle(byte[] data)
|
void |
xtestOutputWithPreAndScriptTags()
Test output with pre and script tags |
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 BeanTest(java.lang.String name)
Method Detail |
protected byte[] pickle(java.lang.Object object) throws java.io.IOException
java.io.IOException
protected java.lang.Object unpickle(byte[] data) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected void check(StringBean bean, java.lang.String html, java.lang.String text)
public void testZeroArgPageConstructor() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testZeroArgLexerConstructor() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testZeroArgParserConstructor() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testSerializable() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testSerializableScanners() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testSerializableStringBean() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testSerializableLinkBean() throws java.io.IOException, java.lang.ClassNotFoundException, ParserException
java.io.IOException
java.lang.ClassNotFoundException
ParserException
public void testStringBeanListener()
public void testLinkBeanListener()
public void testCollapsed1()
public void testCollapsed2()
public void testCollapsed3()
public void testOutputWithPreTags()
public void testOutputWithScriptTags()
public void testOutputWithPreAndAnyTag()
public void testOutputWithPreAndAnyTagPlusText()
public void testOutputWithPreAndAnyTagPlusTextWithWhitespace()
public void testOutputWithoutPreAndAnyTagPlusTextWithWhitespace()
public void xtestOutputWithPreAndScriptTags()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |