protocols/src/test/java/eu/internetofus/common/protocols/DefaultProtocolsTest.java
/**
   * Check that can load all the protocols.
   *
   * @param protocol    to load.
   * @param vertx       event bus to use.
   * @param testContext context that manage the test.
   */
Check that can load all the protocols.
@param protocol    to load.
@param vertx       event bus to use.
@param testContext context that manage the test.
Check that can load all the protocols . @param protocol to load . @param vertx event bus to use . @param testContext context that manage the test .
@ParameterizedTest(name = "Should load {0}")
  @EnumSource(DefaultProtocols.class)
  public void shouldLoad(final DefaultProtocols protocol, final Vertx vertx, final VertxTestContext testContext) {
    protocol.load(vertx).onComplete(testContext.succeeding(taskType -> testContext.verify(() -> {
      assertThat(taskType).isNotNull();
      testContext.completeNow();
    })));
  }
@ ParameterizedTest ( name = "Should load {0}" ) @ EnumSource ( DefaultProtocols . class ) public void shouldLoad ( final DefaultProtocols protocol , final Vertx vertx , final VertxTestContext testContext ) { protocol . load ( vertx ) . onComplete ( testContext . succeeding ( taskType -> testContext . verify ( ( ) -> { assertThat ( taskType ) . isNotNull ( ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Check that can load all the protocols.
Check that can load all the protocols .