public void testUptoDate() throws Exception
{
if (JDK1_3)
return;
ConstructRegistry cr = create();
Path p = cr.createDescriptors();
p.createPath().setLocation(
new File(getFrameworkPath("src/test-data/TestConstructRegistry/master.xml")));
p.createPath().setLocation(
new File(getFrameworkPath("src/test-data/TestConstructRegistry/Symbols.xml")));
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();
}