sourceDir.delete();
}
public void
testLoad() throws Exception {
FileSystemSource source = null;
source = new FileSystemSource(new File(sourcePath));
assertEquals("File count in source is wrong", ARTICLES.length,
source.size());
Hashtable table = new Hashtable();
for (int i=0; i < ARTICLES.length; i++) {
String uri = ARTICLES[i].toLowerCase();
String title = ARTICLES[i];
table.put(uri, title);
}
Iterator iter = source.iterator();
while (iter.hasNext()) {
IEntry entry = (IEntry) iter.next();
String title = (String)table.get(entry.getUri());
assertNotNull("Could not recognise entry ["+entry.getUri()+"]",