}
public void testBogusPaths() throws SAXPathException
{
XPathReader reader = XPathReaderFactory.createReader();
JaxenHandler handler = new JaxenHandler();
handler.setXPathFactory( new DefaultXPathFactory() );
reader.setXPathHandler( handler );
for ( int i = 0; i < bogusPaths.length; i++ ) {
String path = bogusPaths[i];
try
{
reader.parse(path);
XPathExpr xpath = handler.getXPathExpr(false);
fail( "Parsed bogus path as: " + xpath );
}
catch (XPathSyntaxException e)
{
}