@Test public void testReplaceOriginal() throws Exception { ReplaceOriginal rn = new ReplaceOriginal(); Document merged = rn.merge(XmlHelper.createDocument(ORIGINAL), XmlHelper.createDocument(REPLACEMENT)); XmlUtils xml = new XmlUtils(); xml.setSource(merged); assertNull(xml.getSingleNode(XPATH_ORIGINAL_NODE)); assertEquals(DATA_B, xml.getSingleTextItem(XPATH_NEW_NODE)); }
public ReplaceOriginal() { }
ReplaceOriginal extends MergeImpl { public ReplaceOriginal() { } }
ReplaceOriginal extends MergeImpl { public ReplaceOriginal() { } ReplaceOriginal(); }
ReplaceOriginal extends MergeImpl { public ReplaceOriginal() { } ReplaceOriginal(); @Override Document merge(Document original, Document newDoc); }
ReplaceOriginal extends MergeImpl { public ReplaceOriginal() { } ReplaceOriginal(); @Override Document merge(Document original, Document newDoc);  }