output.delete();
}
public void testUptoDate() throws Exception
{
ConstructRegistry cr = create();
Path p = cr.createDescriptors();
p.createPath().setLocation(
new File(getFrameworkPath("src/test-data/TestConstructRegistry/master.sdl")));
p.createPath().setLocation(
new File(getFrameworkPath("src/test-data/TestConstructRegistry/Symbols.sdl")));
File output = File.createTempFile("testUptoDate-", ".xml");
// Delete the file, to force the task to re-create it.
output.delete();
cr.setOutput(output);
cr.execute();
compare(output, getFrameworkPath("src/test-data/TestConstructRegistry/testUptoDate.xml"));
long stamp = output.lastModified();
cr.execute();
assertEquals(stamp, output.lastModified());
output.delete();
}