2 * Copyright (c) 2014 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.openflow.md.core;
11 import static org.junit.Assert.assertNotNull;
13 import org.junit.Test;
14 import org.junit.runner.RunWith;
15 import org.mockito.Mock;
16 import org.mockito.runners.MockitoJUnitRunner;
17 import org.opendaylight.openflowjava.protocol.api.connection.ConnectionAdapter;
18 import org.opendaylight.openflowplugin.api.statistics.MessageSpy;
19 import org.opendaylight.yangtools.yang.binding.DataContainer;
22 * Created by Martin Bobak mbobak@cisco.com on 8/29/14.
24 @RunWith(MockitoJUnitRunner.class)
25 public class SwitchConnectionHandlerImplTest {
29 private ErrorHandler errorHandler;
31 private MessageSpy<DataContainer> messageSpy;
33 private ConnectionAdapter connectionAdapter;
36 * Test method for SwitchConnectionHandlerImpl initialization.
39 public void basicInitializationTest() {
40 SwitchConnectionHandlerImpl switchConnectionHandler = new SwitchConnectionHandlerImpl();
41 assertNotNull(switchConnectionHandler);
42 switchConnectionHandler.setMessageSpy(messageSpy);
43 switchConnectionHandler.setErrorHandler(errorHandler);