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.impl.connection;
11 import junit.framework.TestCase;
12 import org.junit.Test;
13 import org.opendaylight.openflowplugin.api.ConnectionException;
14 import org.opendaylight.openflowplugin.api.openflow.md.core.ErrorHandler;
16 public class ErrorHandlerSimpleImplTest extends TestCase {
18 ErrorHandler errorHandler = new ErrorHandlerSimpleImpl();
21 public void testHandleException() {
22 ConnectionException connectionException = new ConnectionException("Exception for testing purpose only.");
23 errorHandler.handleException(connectionException);
25 Exception someException = new Exception("Exception for testing purpose only.");
26 errorHandler.handleException(someException);