protocols/src/test/java/eu/internetofus/common/protocols/DefaultProtocolsTest.java
/**
   * Check that the task type identifier id the same that the loaded one.
   *
   * @param protocol    to load.
   * @param vertx       event bus to use.
   * @param testContext context that manage the test.
   */
Check that the task type identifier id the same that the loaded one.
@param protocol    to load.
@param vertx       event bus to use.
@param testContext context that manage the test.
Check that the task type identifier id the same that the loaded one . @param protocol to load . @param vertx event bus to use . @param testContext context that manage the test .
@ParameterizedTest(name = "Should task type id of {0} match the id of the loaded one")
  @EnumSource(DefaultProtocols.class)
  public void shouldTaskTypeIdMatchLoadedOne(final DefaultProtocols protocol, final Vertx vertx,
      final VertxTestContext testContext) {
    protocol.load(vertx).onComplete(testContext.succeeding(taskType -> testContext.verify(() -> {
      assertThat(protocol.taskTypeId()).isEqualTo(taskType.id);
      testContext.completeNow();
    })));
  }
@ ParameterizedTest ( name = "Should task type id of {0} match the id of the loaded one" ) @ EnumSource ( DefaultProtocols . class ) public void shouldTaskTypeIdMatchLoadedOne ( final DefaultProtocols protocol , final Vertx vertx , final VertxTestContext testContext ) { protocol . load ( vertx ) . onComplete ( testContext . succeeding ( taskType -> testContext . verify ( ( ) -> { assertThat ( protocol . taskTypeId ( ) ) . isEqualTo ( taskType . id ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Check that the task type identifier id the same that the loaded one.
Check that the task type identifier id the same that the loaded one .