@Test @DisplayName("Initiate a CVID handshake") void testInitiate() { HANDLER.handshake(client, InstanceType.CLIENT, InstanceFlavor.MEGA, "testuuid"); MSG msg = client.readOutbound(); RQ_Cvid rq = msg.getRqCvid(); assertTrue(rq != null); assertEquals(InstanceType.CLIENT, rq.getInstance()); assertEquals(InstanceFlavor.MEGA, rq.getInstanceFlavor()); assertEquals("testuuid", rq.getUuid()); }
void handshake(Channel channel, InstanceType instance, InstanceFlavor flavor, String uuid) { log.debug("Initiating CVID handshake"); channel.writeAndFlush( MsgUtil.rq(RQ_Cvid.newBuilder().setInstance(instance).setInstanceFlavor(flavor).setUuid(uuid)).build()); }
CvidRequestHandler extends AbstractCvidHandler { void handshake(Channel channel, InstanceType instance, InstanceFlavor flavor, String uuid) { log.debug("Initiating CVID handshake"); channel.writeAndFlush( MsgUtil.rq(RQ_Cvid.newBuilder().setInstance(instance).setInstanceFlavor(flavor).setUuid(uuid)).build()); } }
CvidRequestHandler extends AbstractCvidHandler { void handshake(Channel channel, InstanceType instance, InstanceFlavor flavor, String uuid) { log.debug("Initiating CVID handshake"); channel.writeAndFlush( MsgUtil.rq(RQ_Cvid.newBuilder().setInstance(instance).setInstanceFlavor(flavor).setUuid(uuid)).build()); }  }
CvidRequestHandler extends AbstractCvidHandler { void handshake(Channel channel, InstanceType instance, InstanceFlavor flavor, String uuid) { log.debug("Initiating CVID handshake"); channel.writeAndFlush( MsgUtil.rq(RQ_Cvid.newBuilder().setInstance(instance).setInstanceFlavor(flavor).setUuid(uuid)).build()); }  @Override void channelActive(ChannelHandlerContext ctx); }
CvidRequestHandler extends AbstractCvidHandler { void handshake(Channel channel, InstanceType instance, InstanceFlavor flavor, String uuid) { log.debug("Initiating CVID handshake"); channel.writeAndFlush( MsgUtil.rq(RQ_Cvid.newBuilder().setInstance(instance).setInstanceFlavor(flavor).setUuid(uuid)).build()); }  @Override void channelActive(ChannelHandlerContext ctx);  }