Assert.assertFalse( directory.isClosed() );
}
private FileMonitoringDirectory getDirectory(String indexName) {
DirectoryBasedIndexManager indexManager = (DirectoryBasedIndexManager) searchFactory.getIndexManagerHolder().getIndexManager( indexName );
FileMonitoringDirectoryProvider directoryProvider = (FileMonitoringDirectoryProvider) indexManager.getDirectoryProvider();
FileMonitoringDirectory directory = (FileMonitoringDirectory) directoryProvider.getDirectory();
return directory;
}