ImmutableList.of(new JavaFileSystemType()));
PathParser pathParser = new PathParser(fileSystemTypeRegistry);
type = new FileConnectorType(pathParser);
TestDirectoryManager testDirectoryManager = new TestDirectoryManager(this);
// Create a complete configuration. For now, most of the values are nonsense.
config = Maps.newHashMap();
for (Field field : FileConnectorType.getRequiredFieldsForTesting()) {
config.put(field.getName(), field.getLabel(US_BUNDLE));
}
// Full Traversal Interval needs to be an integer.
config.put("fulltraversal", "0");
// Create some test directories to validate.
for (int k = 0; k < 5; ++k) {
File dir = testDirectoryManager.makeDirectory(String.format("start-path-%d", k));
TestFileSystemFactory.createDirectory(dir, 5, 1);
// The start paths are actually checked, so make them valid.
config.put("start_" + k, dir.getAbsolutePath());
// The start path cannot be eliminated by include/exclude patterns
config.put("include_" + k, dir.getAbsolutePath());