Merge "Fix raw references to Promise"
authorTony Tkacik <ttkacik@cisco.com>
Mon, 10 Nov 2014 08:56:24 +0000 (08:56 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 10 Nov 2014 08:56:24 +0000 (08:56 +0000)
1  2 
opendaylight/netconf/netconf-client/src/test/java/org/opendaylight/controller/netconf/client/NetconfClientSessionNegotiatorTest.java

index 1b07f3c2803303ce7f51cc2b1ce61ab858e12dd7,ac715d87d82132e301c347a0e7d42be203a63049..187f13b2585d9fda02fdc6de209e58cc92001ebd
@@@ -103,7 -103,7 +103,7 @@@ public class NetconfClientSessionNegoti
          return pipeline;
      }
  
-     private NetconfClientSessionNegotiator createNetconfClientSessionNegotiator(final Promise promise,
+     private NetconfClientSessionNegotiator createNetconfClientSessionNegotiator(final Promise<NetconfClientSession> promise,
                                                                                  final NetconfMessage startExi) {
          ChannelProgressivePromise progressivePromise = mock(ChannelProgressivePromise.class);
          NetconfClientSessionPreferences preferences = new NetconfClientSessionPreferences(helloMessage, startExi);
          NetconfClientSessionNegotiator negotiator = createNetconfClientSessionNegotiator(promise, null);
  
          negotiator.channelActive(null);
 -        Set caps = Sets.newSet("a", "b");
 +        Set<String> caps = Sets.newSet("a", "b");
          NetconfHelloMessage helloServerMessage = NetconfHelloMessage.createServerHello(caps, 10);
          negotiator.handleMessage(helloServerMessage);
          verify(promise).setSuccess(anyObject());
          NetconfClientSessionNegotiator negotiator = createNetconfClientSessionNegotiator(promise, exiMessage);
  
          negotiator.channelActive(null);
 -        Set caps = Sets.newSet("exi:1.0");
 +        Set<String> caps = Sets.newSet("exi:1.0");
          NetconfHelloMessage helloMessage = NetconfHelloMessage.createServerHello(caps, 10);
  
          doAnswer(new Answer<Object>() {