components/src/test/java/eu/internetofus/common/components/interaction_protocol_engine/ProtocolMessageTest.java
/**
   * Create an example model that has the specified index that create any required
   * component.
   *
   * @param index       to use in the example.
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @return the created protocol message.
   */
Create an example model that has the specified index that create any required
component.

@param index       to use in the example.
@param vertx       event bus to use.
@param testContext context to test.

@return the created protocol message.
Create an example model that has the specified index that create any required component . @param index to use in the example . @param vertx event bus to use . @param testContext context to test . @return the created protocol message .
@Override
  public Future<ProtocolMessage> createModelExample(final int index, final Vertx vertx,
      final VertxTestContext testContext) {
    return testContext
        .assertComplete(new ProtocolAddressTest().createModelExample(index, vertx, testContext).compose(sender -> {
          return new ProtocolAddressTest().createModelExample(index + 1, vertx, testContext).compose(receiver -> {
            return super.createModelExample(index, vertx, testContext).compose(model -> {
              model.sender = sender;
              model.receiver = receiver;
              return Future.succeededFuture(model);
            });
          });
        }));
  }
@ Override public Future < ProtocolMessage > createModelExample ( final int index , final Vertx vertx , final VertxTestContext testContext ) { return testContext . assertComplete ( new ProtocolAddressTest ( ) . createModelExample ( index , vertx , testContext ) . compose ( sender -> { return new ProtocolAddressTest ( ) . createModelExample ( index + 1 , vertx , testContext ) . compose ( receiver -> { return super . createModelExample ( index , vertx , testContext ) . compose ( model -> { model . sender = sender ; model . receiver = receiver ; return Future . succeededFuture ( model ) ; } ) ; } ) ; } ) ) ; }
Create an example model that has the specified index that create any required
 component.
Create an example model that has the specified index that create any required component .