assertTrue(newRoot.isFile());
assertEquals(altFile.length(), newRoot.length());
}
public void testAltNode() throws Exception {
DataNodeConfigInfo node = new DataNodeConfigInfo();
node.setName("node1");
node.setAdapter("non-existent-adapter");
task.addNode(node);
// run task
task.execute();
// check results
assertTrue(dest.isFile());
ZipUtil.unzip(dest, project.getBaseDir());
File newRoot = new File(project.getBaseDir(), Configuration.DEFAULT_DOMAIN_FILE);
String fileContents = Util.stringFromFile(newRoot);
assertTrue(fileContents.contains(node.getName()));
assertTrue(fileContents.contains(node.getAdapter()));
}