X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=plugins%2Fnetconf-server-mdsal%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fserver%2Fmdsal%2Fnotifications%2FNotificationsTransformUtilTest.java;fp=apps%2Fnetconf-events-mdsal%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fserver%2Fevents%2Fmdsal%2FNotificationsTransformUtilTest.java;h=e7cad2869ece7c80238242401cc558c29ef4f5c7;hb=d48c678e940812d51168cdf27c9c6dda099c409e;hp=750be1fa258679142deaa302e0576f1a1c0b014f;hpb=414560ad0734a764d513260037703a3edd76b489;p=netconf.git diff --git a/apps/netconf-events-mdsal/src/test/java/org/opendaylight/netconf/server/events/mdsal/NotificationsTransformUtilTest.java b/plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/server/mdsal/notifications/NotificationsTransformUtilTest.java similarity index 93% rename from apps/netconf-events-mdsal/src/test/java/org/opendaylight/netconf/server/events/mdsal/NotificationsTransformUtilTest.java rename to plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/server/mdsal/notifications/NotificationsTransformUtilTest.java index 750be1fa25..e7cad2869e 100644 --- a/apps/netconf-events-mdsal/src/test/java/org/opendaylight/netconf/server/events/mdsal/NotificationsTransformUtilTest.java +++ b/plugins/netconf-server-mdsal/src/test/java/org/opendaylight/netconf/server/mdsal/notifications/NotificationsTransformUtilTest.java @@ -5,7 +5,7 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ -package org.opendaylight.netconf.server.events.mdsal; +package org.opendaylight.netconf.server.mdsal.notifications; import static org.junit.Assert.assertFalse; import static org.mockito.Mockito.doReturn; @@ -13,6 +13,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.withSettings; import java.time.Instant; +import java.util.Map; import java.util.Set; import org.junit.BeforeClass; import org.junit.Test; @@ -62,6 +63,9 @@ public class NotificationsTransformUtilTest { doReturn(Set.of(new Uri("uri1"))).when(capabilityChange).getAddedCapability(); doReturn(Set.of(new Uri("uri4"), new Uri("uri3"))).when(capabilityChange).getDeletedCapability(); doReturn(EVENT_TIME).when((EventInstantAware) capabilityChange).eventInstant(); + doReturn(null).when(capabilityChange).getChangedBy(); + doReturn(null).when(capabilityChange).getModifiedCapability(); + doReturn(Map.of()).when(capabilityChange).augmentations(); final var notification = UTIL.transform(capabilityChange, Absolute.of(NetconfCapabilityChange.QNAME));