Code example for XPathExpressionException

Methods: printStackTrace

0
		String className = null;
		try { 
			className = toJavaMethod.extractClassName(action, null, null, null);
		} catch (XPathExpressionException e) {
			ex = e;
			e.printStackTrace();
		} 
		assertNull(ex);
		assertEquals("org.apache.struts.helloworld.action.HelloWorldAction",
				className);
	} 
 
	public void testExtractJavaMethodForJetty() throws Exception { 
 
		IXMLReference reference = XMLReferencesUtil.createXMLReference(
				"/struts/package/action", "@method", null, null, 
				PIPELINES_CONTENT_TYPE, null, null);
		IXMLReferenceToJavaMethod toJavaMethod = reference.createToJavaMethod(
				"", null, null, "/pipelines/pipeline", "@class", null); 
		reference.addTo(toJavaMethod);