import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
-import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.doReturn;
import org.junit.Before;
import org.junit.Test;
@Before
public void setUp() {
- when(encryptionService.encrypt(TEST_PWD)).thenReturn(ENC_PWD);
+ doReturn(ENC_PWD).when(encryptionService).encrypt(TEST_PWD);
rpcProvider = new NetconfTopologyRPCProvider(dataBroker, encryptionService, TOPOLOGY_ID);
}
.setHost(new Host(new IpAddress(new Ipv4Address("10.18.16.188"))))
.setPort(new PortNumber(Uint16.valueOf(830)))
.setTcpOnly(Boolean.FALSE)
- // FIXME: do we really want 'toString()' here?
- .setNodeId(NODE_ID.toString())
+ .setNodeId(NODE_ID.getValue())
.build();
}
}