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