diff options
author | 2020-10-16 07:34:34 +0200 | |
---|---|---|
committer | 2020-10-16 07:35:02 +0200 | |
commit | 84592e17c68253e101085307b6d8717a2fc2adbf (patch) | |
tree | c9adafa185e612730fed95701c3a618be659518e /sdnr/wt/mountpoint-state-provider/provider/src/test/java | |
parent | a09598cb10c7a713d00d0876a102121e60261ba6 (diff) |
Enable and Disable writing mountpoint state changes to VES Collector
Enable and Disable writing mountpoint state changes to VES Collector
Issue-ID: SDNC-1382
Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Change-Id: I92113b9d05a509f74dfdb9af44daa5431cfa40d0
Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt/mountpoint-state-provider/provider/src/test/java')
-rw-r--r-- | sdnr/wt/mountpoint-state-provider/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/test/TestMountpointStateProviderImpl.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdnr/wt/mountpoint-state-provider/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/test/TestMountpointStateProviderImpl.java b/sdnr/wt/mountpoint-state-provider/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/test/TestMountpointStateProviderImpl.java index 4e4ac3064..709d92140 100644 --- a/sdnr/wt/mountpoint-state-provider/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/test/TestMountpointStateProviderImpl.java +++ b/sdnr/wt/mountpoint-state-provider/provider/src/test/java/org/onap/ccsdk/features/sdnr/wt/mountpointstateprovider/test/TestMountpointStateProviderImpl.java @@ -30,6 +30,7 @@ import java.io.IOException; import org.junit.Test; import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.DeviceManagerServiceProvider; import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.NetconfNetworkElementService; +import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.VESCollectorCfgService; import org.onap.ccsdk.features.sdnr.wt.devicemanager.service.VESCollectorService; import org.onap.ccsdk.features.sdnr.wt.mountpointstateprovider.impl.MountpointStateProviderImpl; import org.onap.ccsdk.features.sdnr.wt.netconfnodestateservice.NetconfNodeStateService; @@ -46,10 +47,13 @@ public class TestMountpointStateProviderImpl { NetconfNodeStateService netconfNodeStateService = mock(NetconfNodeStateService.class); DeviceManagerServiceProvider serviceProvider = mock(DeviceManagerServiceProvider.class); VESCollectorService vesCollectorService = mock(VESCollectorService.class); + VESCollectorCfgService vesCollectorCfgService = mock(VESCollectorCfgService.class); NetconfNetworkElementService netconfNetworkElementService = mock(NetconfNetworkElementService.class); when(netconfNetworkElementService.getServiceProvider()).thenReturn(serviceProvider); when(serviceProvider.getVESCollectorService()).thenReturn(vesCollectorService); + when(vesCollectorService.getConfig()).thenReturn(vesCollectorCfgService); + when(vesCollectorCfgService.isVESCollectorEnabled()).thenReturn(true); mountpointStateProvider = new MountpointStateProviderImpl(); mountpointStateProvider.setNetconfNetworkElementService(netconfNetworkElementService); |