Remove DeviceContextImpl.XidGenerator
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / rpc / AbstractRequestContextTest.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.impl.rpc;
10
11 import static org.junit.Assert.assertNotNull;
12 import java.util.concurrent.Future;
13 import org.junit.Before;
14 import org.junit.Test;
15 import org.junit.runner.RunWith;
16 import org.mockito.runners.MockitoJUnitRunner;
17
18 @RunWith(MockitoJUnitRunner.class)
19 public class AbstractRequestContextTest {
20     private AbstractRequestContext<Object> requestContext;
21
22     @Before
23     public void setup() {
24         requestContext = new AbstractRequestContext<Object>() {
25             @Override
26             public void close() {
27                 // No-op
28             }
29         };
30     }
31
32     @Test
33     public void testCreateRequestFuture() throws Exception {
34         Future<?> future = requestContext.getFuture();
35         assertNotNull(future);
36     }
37 }