Move used code from openflowplugin to impl
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / connection / ErrorHandlerSimpleImplTest.java
1 /*
2  * Copyright (c) 2014 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.impl.connection;
10
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;
15
16 public class ErrorHandlerSimpleImplTest extends TestCase {
17
18     ErrorHandler errorHandler = new ErrorHandlerSimpleImpl();
19
20     @Test
21     public void testHandleException() throws Exception {
22         ConnectionException connectionException = new ConnectionException("Exception for testing purpose only.");
23         errorHandler.handleException(connectionException);
24
25         Exception someException = new Exception("Exception for testing purpose only.");
26         errorHandler.handleException(someException);
27
28     }
29 }