protocols/src/test/java/eu/internetofus/common/protocols/AbstractAsk4HelpV2_2ProtocolRandomUsersITC.java
/**
   * Check that the requester can ask for more answers.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Check that the requester can ask for more answers.
@param vertx       event bus to use.
@param testContext context to do the test.
Check that the requester can ask for more answers . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(9)
  public void shouldNotAnswer(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(8, testContext);
    final var notAnswerTransaction = new TaskTransaction();
    notAnswerTransaction.taskId = this.task.id;
    notAnswerTransaction.actioneerId = this.expectedNewParticipants.get(0);
    notAnswerTransaction.label = "notAnswerTransaction";
    final var checkTask = this.createTaskPredicate().and(TaskPredicates.lastTransactionIs(
        this.createTaskTransactionPredicate().and(TaskTransactionPredicates.similarTo(notAnswerTransaction))));
    final Future<?> future = WeNetTaskManager.createProxy(vertx).doTaskTransaction(notAnswerTransaction)
        .compose(ignored -> this.waitUntilTask(vertx, testContext, checkTask));
    future.onComplete(testContext.succeeding(ignored -> this.assertSuccessfulCompleted(testContext)));
  }
@ Test @ Order ( 9 ) public void shouldNotAnswer ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 8 , testContext ) ; final var notAnswerTransaction = new TaskTransaction ( ) ; notAnswerTransaction . taskId = this . task . id ; notAnswerTransaction . actioneerId = this . expectedNewParticipants . get ( 0 ) ; notAnswerTransaction . label = "notAnswerTransaction" ; final var checkTask = this . createTaskPredicate ( ) . and ( TaskPredicates . lastTransactionIs ( this . createTaskTransactionPredicate ( ) . and ( TaskTransactionPredicates . similarTo ( notAnswerTransaction ) ) ) ) ; final Future < ? > future = WeNetTaskManager . createProxy ( vertx ) . doTaskTransaction ( notAnswerTransaction ) . compose ( ignored -> this . waitUntilTask ( vertx , testContext , checkTask ) ) ; future . onComplete ( testContext . succeeding ( ignored -> this . assertSuccessfulCompleted ( testContext ) ) ) ; }
Check that the requester can ask for more answers.
Check that the requester can ask for more answers .