java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.htmlparser.tests.ParserTestCase
org.htmlparser.tests.parserHelperTests.AttributeParserTest
- All Implemented Interfaces:
- junit.framework.Test
- public class AttributeParserTest
- extends org.htmlparser.tests.ParserTestCase
| Fields inherited from class junit.framework.TestCase |
|
| 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.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 |
parser
private org.htmlparser.parserHelper.AttributeParser parser
tag
private org.htmlparser.tags.Tag tag
table
private java.util.Hashtable table
AttributeParserTest
public AttributeParserTest(java.lang.String name)
setUp
protected void setUp()
- Description copied from class:
junit.framework.TestCase
- Sets up the fixture, for example, open a network connection.
This method is called before a test is executed.
getParameterTableFor
public void getParameterTableFor(java.lang.String tagContents)
testParseParameters
public void testParseParameters()
testParseTokenValues
public void testParseTokenValues()
testParseEmptyValues
public void testParseEmptyValues()
testParseMissingEqual
public void testParseMissingEqual()
testTwoParams
public void testTwoParams()
testPlainParams
public void testPlainParams()
testValueMissing
public void testValueMissing()
testIncorrectSpaceKeyBug
public void testIncorrectSpaceKeyBug()
- This is a simulation of a bug reported by Dhaval Udani - wherein a space
before the end of the tag causes a problem - there is a key in the table
with just a space in it and an empty value
testNullTag
public void testNullTag()
testAttributeWithSpuriousEqualTo
public void testAttributeWithSpuriousEqualTo()
testQuestionMarksInAttributes
public void testQuestionMarksInAttributes()
testEmptyTag
public void testEmptyTag()
- Believe it or not Moi (vincent_aumont) wants htmlparser to parse a text
file containing something that looks nearly like a tag:
" basic_string<char, string_char_traits<char>, <>>::basic_string()"
This was throwing a null pointer exception when the empty <> was
encountered. Bug #725420 NPE in StringBean.visitTag
testJspWithinAttributes
public void testJspWithinAttributes()
- Test attributes when they contain scriptlets. Submitted by Cory Seefurth
See also feature request #725376 Handle script in attributes. Only
perform this test if it's version 1.4 or higher.
testScriptedTag
public void testScriptedTag()
- Test Script in attributes. See feature request #725376 Handle script in
attributes. Only perform this test if it's version 1.4 or higher.