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
9 package org.opendaylight.openflowplugin.applications.notification.supplier.impl.helper;
11 import org.mockito.ArgumentMatchers;
12 import org.mockito.Mockito;
13 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
14 import org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener;
15 import org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier;
17 public final class TestSupplierVerifyHelper {
19 private TestSupplierVerifyHelper() {
20 throw new UnsupportedOperationException("Test utility class");
23 public static void verifyDataTreeChangeListenerRegistration(DataBroker dataBroker) {
25 Mockito.verify(dataBroker).registerDataTreeChangeListener(
26 ArgumentMatchers.<DataTreeIdentifier>any(),
27 ArgumentMatchers.<DataTreeChangeListener>any());