assertXMLEqual(new FileReader(this.assembledWebXmlFile), new FileReader(webXmlFileDest));
}
public void testAssembleOverSelf() throws Exception {
AssemblerConfig config = new AssemblerConfig();
final File webXmlFileCopy = File.createTempFile(this.webXmlFile.getName() + ".", ".source.xml");
webXmlFileCopy.deleteOnExit();
FileUtils.copyFile(this.webXmlFile, webXmlFileCopy);
config.setWebappDescriptor(webXmlFileCopy);
config.setPortletDescriptor(this.portletXmlFile);
config.setDestination(webXmlFileCopy);
FileAssembler assembler = new FileAssembler();
assembler.assemble(config);
assertXMLEqual(new FileReader(this.assembledWebXmlFile), new FileReader(webXmlFileCopy));