2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.openflowplugin.applications.notification.supplier.impl.helper;
10 import org.mockito.ArgumentMatchers;
11 import org.mockito.Mockito;
12 import org.opendaylight.mdsal.binding.api.DataBroker;
13 import org.opendaylight.mdsal.binding.api.DataTreeChangeListener;
14 import org.opendaylight.mdsal.binding.api.DataTreeIdentifier;
16 public final class TestSupplierVerifyHelper {
18 private TestSupplierVerifyHelper() {
19 throw new UnsupportedOperationException("Test utility class");
22 public static void verifyDataTreeChangeListenerRegistration(DataBroker dataBroker) {
24 Mockito.verify(dataBroker).registerDataTreeChangeListener(
25 ArgumentMatchers.<DataTreeIdentifier>any(),
26 ArgumentMatchers.<DataTreeChangeListener>any());