import static org.mockito.Mockito.verify;
import java.util.Optional;
-
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.runners.MockitoJUnitRunner;
-import org.opendaylight.controller.sal.binding.api.NotificationProviderService;
+import org.opendaylight.mdsal.binding.api.NotificationPublishService;
import org.opendaylight.mdsal.eos.binding.api.Entity;
import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService;
import org.opendaylight.mdsal.eos.common.api.EntityOwnershipState;
@Mock
private LinkDiscovered link;
@Mock
- private NotificationProviderService notificationService;
+ private NotificationPublishService notificationService;
@Mock
private EntityOwnershipService eos;
@Mock
public void testLLDPAgingTask() throws InterruptedException {
lldpLinkAger.put(link);
Thread.sleep(SLEEP);
- verify(notificationService).publish(any(LinkRemoved.class));
+ verify(notificationService).putNotification(any(LinkRemoved.class));
}
private TopologyLldpDiscoveryConfig getConfig() {