mirror of https://github.com/apache/druid.git
Merge pull request #2067 from metamx/fixInitializationTest
Fix InitializationTest
This commit is contained in:
commit
788acdbd1c
|
@ -187,12 +187,20 @@ public class InitializationTest
|
|||
}
|
||||
|
||||
@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",
|
||||
new File[]{},
|
||||
Initialization.getExtensionFilesToLoad(new ExtensionsConfig())
|
||||
Initialization.getExtensionFilesToLoad(new ExtensionsConfig(){
|
||||
@Override
|
||||
public String getDirectory()
|
||||
{
|
||||
return tmpDir.getAbsolutePath();
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -227,7 +235,7 @@ public class InitializationTest
|
|||
Assert.assertArrayEquals(
|
||||
"Empty root extensionsDir should return emply array of File",
|
||||
new File[]{},
|
||||
Initialization.getExtensionFilesToLoad(new ExtensionsConfig())
|
||||
Initialization.getExtensionFilesToLoad(config)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue