summaryrefslogtreecommitdiffstats
path: root/container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java')
-rw-r--r--container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java b/container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java
index 338577c6f4c..931b0c547fd 100644
--- a/container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java
+++ b/container-core/src/test/java/com/yahoo/container/core/config/PlatformBundleLoaderTest.java
@@ -1,6 +1,5 @@
package com.yahoo.container.core.config;
-import com.yahoo.config.FileReference;
import com.yahoo.osgi.Osgi;
import org.junit.Before;
import org.junit.Test;
@@ -17,10 +16,10 @@ import static org.junit.Assert.assertTrue;
*/
public class PlatformBundleLoaderTest {
- private static final FileReference BUNDLE_1_REF = new FileReference("bundle-1");
- private static final Bundle BUNDLE_1 = new TestBundle(BUNDLE_1_REF.value());
- private static final FileReference BUNDLE_2_REF = new FileReference("bundle-2");
- private static final Bundle BUNDLE_2 = new TestBundle(BUNDLE_2_REF.value());
+ private static final String BUNDLE_1_REF = "bundle-1";
+ private static final Bundle BUNDLE_1 = new TestBundle(BUNDLE_1_REF);
+ private static final String BUNDLE_2_REF = "bundle-2";
+ private static final Bundle BUNDLE_2 = new TestBundle(BUNDLE_2_REF);
private PlatformBundleLoader bundleLoader;
private TestOsgi osgi;
@@ -52,14 +51,14 @@ public class PlatformBundleLoaderTest {
}
private static Map<String, Bundle> testBundles() {
- return Map.of(BUNDLE_1_REF.value(), BUNDLE_1,
- BUNDLE_2_REF.value(), BUNDLE_2);
+ return Map.of(BUNDLE_1_REF, BUNDLE_1,
+ BUNDLE_2_REF, BUNDLE_2);
}
static class TestBundleInstaller extends DiskBundleInstaller {
@Override
- public List<Bundle> installBundles(FileReference reference, Osgi osgi) {
- return osgi.install(reference.value());
+ public List<Bundle> installBundles(String bundlePath, Osgi osgi) {
+ return osgi.install(bundlePath);
}
}
}