GenericXMLHandler implements Cloneable { public void Save() { try { XMLOutputter out = new XMLOutputter(); java.io.FileWriter writer = new java.io.FileWriter(this.xmlFile); out.output(this.xmlDocument, writer); writer.flush(); writer.close(); } catch (Exception ex) { LOG.error("Error in handler: " + ex.getMessage(), ex); } } GenericXMLHandler();  GenericXMLHandler(File xmlFile);  GenericXMLHandler(String xmlFile); void SetElementText(String xPathExpression, String value); void SetElementAttribute(String xPathExpression, String attribute, String value); String GetElementText(String xPathExpression); String GetElementAttr(String xPathExpression); ArrayList<String> GetElementList(String xPathExpression); boolean xPathExists(String xpathExpr); String toString(); void Save(); boolean isXMLValid(); Object clone(); String getParentPath(String xpath); String getCurrentPath(String xpath, int node); String getChildNode(String xpath); String getCurrentNamespace(String xpath); void setNamespace(String name, String value);  }
@Test public void testSave_1() throws Exception { GenericXMLHandler fixture = new GenericXMLHandler(new File("")); fixture.namespaces = new HashMap(); fixture.xml = ""; fixture.xmlDocument = new Document(); fixture.Save(); }
@Test public void testSave_2() throws Exception { GenericXMLHandler fixture = new GenericXMLHandler(new File("")); fixture.namespaces = new HashMap(); fixture.xml = ""; fixture.xmlDocument = new Document(); fixture.Save(); }
@Test public void testSave_3() throws Exception { GenericXMLHandler fixture = new GenericXMLHandler(new File("")); fixture.namespaces = new HashMap(); fixture.xml = ""; fixture.xmlDocument = new Document(); fixture.Save(); }
@Test public void testSave_4() throws Exception { GenericXMLHandler fixture = new GenericXMLHandler(new File("")); fixture.namespaces = new HashMap(); fixture.xml = ""; fixture.xmlDocument = new Document(); fixture.Save(); }
@Test public void testSave_5() throws Exception { GenericXMLHandler fixture = new GenericXMLHandler(new File("")); fixture.namespaces = new HashMap(); fixture.xml = ""; fixture.xmlDocument = new Document(); fixture.Save(); }