|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |
WEB-INF.cftags.componentmxunit.framework.Assert
mxunit.framework.XPathAssert
public class XPathAssert
Assertions for XML and well formed HTML
Method Summary | |
---|---|
any |
assertXpath(String xpath, any data, [string text=''], [string message='[runtime expression]'])
|
any |
buildXmlDom(any data, [boolean isUrl='false'])
Experimental! |
boolean |
isWrapped(string html)
|
string |
wrapScriptTagInCDATA(string html)
Regular Expression util wrapper |
Methods inherited from class mxunit.framework.Assert |
---|
mxunit.framework.XPathAssert
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Method Detail |
---|
public any assertXpath(String xpath, any data, [string text=''], [string message='[runtime expression]'])
xpath
- string representing an
xpath expressiondata
- String or URL to searchtext
- The text to match against the xpath expression. If omitted, this
assertion returns true if any elements of the xpath epxression are found.message
- The
mssage to display when this assertion failspublic any buildXmlDom(any data, [boolean isUrl='false'])
data
- A string that needs to be parsed into an XML DOM Object.isUrl
- Flag that determines whether or not the data argument is a URL as opposed to a string.public boolean isWrapped(string html)
html
- Wraps the internal contents of script tags with a CDATA section. Workaround for JTidy lack.public string wrapScriptTagInCDATA(string html)
html
- Wraps the internal contents of script tags with a CDATA section. Workaround for JTidy lack.
|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |