diff options
Diffstat (limited to 'jdisc_core_test/integration_test/src/test/java/com')
-rw-r--r-- | jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java b/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java index 6dec6cb444b..7995def7045 100644 --- a/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java +++ b/jdisc_core_test/integration_test/src/test/java/com/yahoo/jdisc/core/FelixFrameworkIntegrationTest.java @@ -196,7 +196,7 @@ public class FelixFrameworkIntegrationTest { private static int callClass(Bundle bundle, String className) throws Exception { Class<?> certClass = bundle.loadClass(className); assertNotNull(certClass); - Callable<Integer> cert = (Callable<Integer>)certClass.newInstance(); + Callable<Integer> cert = (Callable<Integer>)certClass.getDeclaredConstructor().newInstance(); assertNotNull(cert); return cert.call(); } @@ -214,7 +214,7 @@ public class FelixFrameworkIntegrationTest { assertEquals(Arrays.asList(expectedBundles), actual); felix.startBundles(bundles, false); if (className != null) { - assertNotNull(bundles.get(0).loadClass(className).newInstance()); + assertNotNull(bundles.get(0).loadClass(className).getDeclaredConstructor().newInstance()); } } finally { felix.stop(); |