From fa622476470f31a518c46926261bd7eecd7a2778 Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Mon, 8 May 2017 21:04:32 -0700 Subject: Fix compilation errors in Eclipse Change-Id: Ic5aa1977199237e006376231ae3970ece7f2cd26 Signed-off-by: Gary Wu --- .../openecomp/appc/dg/common/impl/DCAEReporterPluginImplTest.java | 2 +- .../openecomp/appc/dg/netconf/impl/NetconfClientPluginImplTest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'appc-dg/appc-dg-shared') diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/openecomp/appc/dg/common/impl/DCAEReporterPluginImplTest.java b/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/openecomp/appc/dg/common/impl/DCAEReporterPluginImplTest.java index 06398f7f5..834bd8655 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/openecomp/appc/dg/common/impl/DCAEReporterPluginImplTest.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/test/java/org/openecomp/appc/dg/common/impl/DCAEReporterPluginImplTest.java @@ -68,7 +68,7 @@ public class DCAEReporterPluginImplTest { PowerMockito.when(FrameworkUtil.getBundle(Matchers.any(Class.class))).thenReturn(bundleService); PowerMockito.when(bundleService.getBundleContext()).thenReturn(bundleContext); PowerMockito.when(bundleContext.getServiceReference(Matchers.any(Class.class))).thenReturn(sref); - PowerMockito.when(bundleContext.getService(sref)).thenReturn(eventSender); + PowerMockito.when(bundleContext.getService(sref)).thenReturn(eventSender); dcaeReporterPlugin = new DCAEReporterPluginImpl(); } diff --git a/appc-dg/appc-dg-shared/appc-dg-netconf/src/test/java/org/openecomp/appc/dg/netconf/impl/NetconfClientPluginImplTest.java b/appc-dg/appc-dg-shared/appc-dg-netconf/src/test/java/org/openecomp/appc/dg/netconf/impl/NetconfClientPluginImplTest.java index 5c5aa71a1..3b4a32385 100644 --- a/appc-dg/appc-dg-shared/appc-dg-netconf/src/test/java/org/openecomp/appc/dg/netconf/impl/NetconfClientPluginImplTest.java +++ b/appc-dg/appc-dg-shared/appc-dg-netconf/src/test/java/org/openecomp/appc/dg/netconf/impl/NetconfClientPluginImplTest.java @@ -626,7 +626,7 @@ public class NetconfClientPluginImplTest { when(FrameworkUtil.getBundle(Matchers.any(Class.class))).thenReturn(bundleService); when(bundleService.getBundleContext()).thenReturn(bundleContext); when(bundleContext.getServiceReference(NetconfDataAccessService.class)).thenReturn(sref1); - when(bundleContext.getService(sref1)).thenReturn(dao); + when(bundleContext.getService(sref1)).thenReturn(dao); } @@ -652,7 +652,7 @@ public class NetconfClientPluginImplTest { when(FrameworkUtil.getBundle(Matchers.any(Class.class))).thenReturn(bundleService); when(bundleService.getBundleContext()).thenReturn(bundleContext); when(bundleContext.getServiceReference(NetconfClientFactory.class)).thenReturn(sref2); - when(bundleContext.getService(sref2)).thenReturn(clientFactory); + when(bundleContext.getService(sref2)).thenReturn(clientFactory); } @@ -661,7 +661,7 @@ public class NetconfClientPluginImplTest { when(FrameworkUtil.getBundle(Matchers.any(Class.class))).thenReturn(bundleService); when(bundleService.getBundleContext()).thenReturn(bundleContext); when(bundleContext.getServiceReference(Matchers.anyString())).thenReturn(sref3); - when(bundleContext.getService(sref3)).thenReturn(clientFactory); + when(bundleContext.getService(sref3)).thenReturn(clientFactory); } private void substituteMapper(boolean command) throws NoSuchFieldException, IllegalAccessException { -- cgit 1.2.3-korg