Merge "Update old links in code to deprecated DataChangeListener"
[openflowplugin.git] / applications / notification-supplier / src / test / java / org / opendaylight / openflowplugin / applications / notification / supplier / impl / helper / TestSupplierVerifyHelper.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.openflowplugin.applications.notification.supplier.impl.helper;
10
11 import org.mockito.Matchers;
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;
16
17 public class TestSupplierVerifyHelper {
18
19     private TestSupplierVerifyHelper() {
20         throw new UnsupportedOperationException("Test utility class");
21     }
22
23     public static void verifyDataChangeRegistration(DataBroker dataBroker) {
24
25         Mockito.verify(dataBroker).registerDataTreeChangeListener(
26                 Matchers.<DataTreeIdentifier>any(),
27                 Matchers.<DataTreeChangeListener>any());
28     }
29 }