fix import extra separations
[transportpce.git] / pce / src / test / java / org / opendaylight / transportpce / pce / utils / NotificationPublishServiceMock.java
1 /*
2  * Copyright © 2017 AT&T, 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 package org.opendaylight.transportpce.pce.utils;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11 import java.util.concurrent.TimeUnit;
12 import org.opendaylight.mdsal.binding.api.NotificationPublishService;
13 import org.opendaylight.yangtools.yang.binding.Notification;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
16
17 public class NotificationPublishServiceMock implements NotificationPublishService {
18
19     private static final Logger LOG = LoggerFactory.getLogger(NotificationPublishServiceMock.class);
20
21     @Override
22     public void putNotification(Notification notification) throws InterruptedException {
23         LOG.info("putNotification");
24     }
25
26     @Override
27     public ListenableFuture<?> offerNotification(Notification notification) {
28         LOG.info("offerNotification");
29         throw new UnsupportedOperationException("offerNotification is not implemented");
30     }
31
32     @Override
33     public ListenableFuture<?> offerNotification(Notification notification, int timeout, TimeUnit unit)
34         throws InterruptedException {
35         LOG.info("offerNotification");
36         throw new UnsupportedOperationException("offerNotification is not implemented");
37     }
38
39 }