Make RPC implementations return ListenableFuture
[mdsal.git] / binding / yang-binding / src / test / java / org / opendaylight / yangtools / yang / binding / util / RpcMethodInvokerWithoutInputTest.java
index cea4b5bce58a2bafff923f406147b12b34ec8dbb..9eac1fc68f5cc9e63c39dc3dc884cf207bf125c8 100644 (file)
@@ -10,9 +10,9 @@ package org.opendaylight.yangtools.yang.binding.util;
 import static org.junit.Assert.assertNotNull;
 
 import com.google.common.util.concurrent.Futures;
+import com.google.common.util.concurrent.ListenableFuture;
 import java.lang.invoke.MethodHandle;
 import java.lang.invoke.MethodHandles;
-import java.util.concurrent.Future;
 import org.junit.Test;
 import org.opendaylight.yangtools.yang.binding.RpcService;
 
@@ -39,12 +39,12 @@ public class RpcMethodInvokerWithoutInputTest {
     private static final class TestImplClassWithoutInput implements RpcService {
 
         @SuppressWarnings("unused")
-        static Future<?> testMethod(final RpcService testArgument) {
+        static ListenableFuture<?> testMethod(final RpcService testArgument) {
             return Futures.immediateFuture(null);
         }
 
         @SuppressWarnings("unused")
-        static Future<?> testMethodWithException(final RpcService testArgument) throws Exception {
+        static ListenableFuture<?> testMethodWithException(final RpcService testArgument) throws Exception {
             throw new InternalError();
         }
     }