2 * Copyright (c) 2015 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.rpc;
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;
18 @RunWith(MockitoJUnitRunner.class)
19 public class AbstractRequestContextTest {
20 private AbstractRequestContext<Object> requestContext;
24 requestContext = new AbstractRequestContext<Object>() {
33 public void testCreateRequestFuture() throws Exception {
34 Future<?> future = requestContext.getFuture();
35 assertNotNull(future);