Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,20 @@ public void testGetLoadedModules()
}

@Test
public void testGetExtensionFilesToLoad_non_exist_extensions_dir()
public void testGetExtensionFilesToLoad_non_exist_extensions_dir() throws IOException
{
final File tmpDir = temporaryFolder.newFolder();
Assert.assertTrue("could not create missing folder", !tmpDir.exists() || tmpDir.delete());
Assert.assertArrayEquals(
"Non-exist root extensionsDir should return emply array of File",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emply? empty?
(appears on other lines also)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch! Sent #2068.

new File[]{},
Initialization.getExtensionFilesToLoad(new ExtensionsConfig())
Initialization.getExtensionFilesToLoad(new ExtensionsConfig(){
@Override
public String getDirectory()
{
return tmpDir.getAbsolutePath();
}
})
);
}

Expand Down Expand Up @@ -227,7 +235,7 @@ public String getDirectory()
Assert.assertArrayEquals(
"Empty root extensionsDir should return emply array of File",
new File[]{},
Initialization.getExtensionFilesToLoad(new ExtensionsConfig())
Initialization.getExtensionFilesToLoad(config)
);
}

Expand Down