diff options
Diffstat (limited to 'src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java')
-rw-r--r-- | src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java b/src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java index e54748b..607f0c0 100644 --- a/src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java +++ b/src/test/java/org/onap/dcaegen2/services/sonhms/child/TestPnfUtils.java @@ -136,7 +136,7 @@ public class TestPnfUtils { .thenReturn(cellInfoNull); try { PowerMockito.whenNew(SdnrRestClient.class).withAnyArguments().thenReturn(sdnr); - PowerMockito.when(ConfigurationClient.configClient(config.getConfigClientType())) + PowerMockito.when(config.getConfigurationClient()) .thenReturn(sdnr); PowerMockito.doReturn(pnfName).when(sdnr, "getPnfName", Mockito.anyString()); PowerMockito.when(cellInfoRepositoryMock.save(new CellInfo(cellId, pnfName))).thenReturn(new CellInfo()); @@ -169,8 +169,7 @@ public class TestPnfUtils { try { PowerMockito.whenNew(SdnrRestClient.class).withAnyArguments().thenReturn(sdnr); - PowerMockito.when(ConfigurationClient.configClient(config.getConfigClientType())) - .thenReturn(sdnr); + PowerMockito.when(config.getConfigurationClient()).thenReturn(sdnr); PowerMockito.doReturn("ncServer1").when(sdnr, "getPnfName", Mockito.anyString()); actual = pnfUtils.getPnfsForAnrSolutions(anrSolutions); } catch (ConfigDbNotFoundException e) { |