} catch (NotFoundException ex) {}
}
public void testFileManagerClone()
{
FileManager fileManager1 = new FileManager() ;
FileManager fileManager2 = fileManager1.clone() ;
// Should not affect fileManager2
fileManager1.addLocatorFile() ;
{
InputStream in = fileManager1.open(testingDir+"/"+filename) ;
assertNotNull(in) ;
closeInputStream(in) ;
}
// Should not work.
try {
InputStream in = fileManager2.open(testingDir+"/"+filename) ;
closeInputStream(in) ;
assertNull("Found file via wrong FileManager", in) ;
} catch (NotFoundException ex) {}
}