public class AttributeTests extends ParserTestCase
构造器和说明 |
---|
AttributeTests(java.lang.String name) |
限定符和类型 | 方法和说明 |
---|---|
void |
getParameterTableFor(java.lang.String tagContents) |
void |
getParameterTableFor(java.lang.String tagContents,
boolean dump) |
void |
testAltAndSrc() |
void |
testAttributeWithSpuriousEqualTo()
Test attribute containing an equals sign.
|
void |
testConstructors()
Test constructors.
|
void |
testConstructors2()
Test constructors.
|
void |
testEmptyAltAndSrc() |
void |
testEmptyTag()
Check that an empty tag is considered a string node.
|
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
|
void |
testJspWithinAttributes()
Test attributes when they contain scriptlets.
|
void |
testMissingAttribute()
Test missing value.
|
void |
testNoSpace() |
void |
testNullTag()
Test empty attribute.
|
void |
testParseEmptyValues()
Test empty value.
|
void |
testParseMissingEqual()
Test no equals or whitespace.
|
void |
testParseParameters()
Test simple value.
|
void |
testParseTokenValues()
Test quote value.
|
void |
testPlainParams()
Test unquoted attributes.
|
void |
testPredicates() |
void |
testProperties()
Test bean properties.
|
void |
testProperties2()
Test bean properties.
|
void |
testQuestionMarksInAttributes()
Test attribute containing a question mark.
|
void |
testRule1()
Test Rule 1.
|
void |
testRule2()
Test Rule 2.
|
void |
testRule3()
Test Rule 3.
|
void |
testRule4()
Test Rule 4.
|
void |
testRule5()
Test Rule 5.
|
void |
testScriptedTag()
Test Script in attributes.
|
void |
testSetQuote() |
void |
testSrcAndAlt() |
void |
testSrcAndEmptyAlt() |
void |
testStandaloneAttribute()
Test that stand-alone attributes are kept that way, rather than being
given empty values.
|
void |
testTwoParams()
Test multiple attributes.
|
void |
testValueMissing()
Test standalone attribute.
|
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 getParameterTableFor(java.lang.String tagContents)
public void getParameterTableFor(java.lang.String tagContents, boolean dump)
public void testConstructors()
public void testProperties()
public void testConstructors2()
public void testProperties2()
public void testParseParameters()
public void testParseTokenValues()
public void testParseEmptyValues()
public void testParseMissingEqual()
public void testTwoParams()
public void testPlainParams()
public void testValueMissing()
public void testIncorrectSpaceKeyBug()
public void testNullTag()
public void testAttributeWithSpuriousEqualTo()
public void testQuestionMarksInAttributes()
public void testEmptyTag()
"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
public void testJspWithinAttributes()
public void testScriptedTag()
public void testStandaloneAttribute()
public void testMissingAttribute()
public void testRule1()
public void testRule2()
public void testRule3()
public void testRule4()
public void testRule5()
public void testSrcAndAlt() throws ParserException
ParserException
public void testSrcAndEmptyAlt() throws ParserException
ParserException
public void testAltAndSrc() throws ParserException
ParserException
public void testEmptyAltAndSrc() throws ParserException
ParserException
public void testPredicates() throws ParserException
ParserException
public void testSetQuote() throws ParserException
ParserException
public void testNoSpace() throws ParserException
ParserException