ServiceLoaderLite: Support paths with spaces (KT-28527)

This commit is contained in:
Yan Zhulanow
2018-12-04 17:03:29 +09:00
parent e8a8318ead
commit 9a98a4525b
2 changed files with 17 additions and 3 deletions
@@ -31,6 +31,13 @@ class ServiceLoaderLiteTestWithClassLoader : AbstractServiceLoaderLiteTest() {
}
}
fun testDirWithSpaces() {
classLoaderTest("test dir", impls<Intf>(NestedComponent::class), clazz<NestedComponent>()) { classLoader ->
val impls = ServiceLoaderLite.loadImplementations<Intf>(classLoader)
assertTrue(impls.single() is NestedComponent)
}
}
fun testNestedComponent() {
classLoaderTest("test", impls<Intf>(NestedComponent::class), clazz<NestedComponent>()) { classLoader ->
val impls = ServiceLoaderLite.loadImplementations<Intf>(classLoader)