protocols/src/test/java/eu/internetofus/common/protocols/EatTogetherV2ProtocolITC.java
/**
   * Check that an user can not be a volunteer if it has declined.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Check that an user can not be a volunteer if it has declined.
@param vertx       event bus to use.
@param testContext context to do the test.
Check that an user can not be a volunteer if it has declined . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(7)
  public void shouldNotVolunteerForTaskAfterDecline(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(6, testContext);
    final var transaction = new TaskTransaction();
    transaction.taskId = this.task.id;
    transaction.label = "volunteerForTask";
    final var volunteerId = this.users.get(1).id;
    transaction.actioneerId = volunteerId;
    transaction.attributes = new JsonObject().put("volunteerId", volunteerId);
    this.assertDoTransactionError(transaction, vertx, testContext);
  }
@ Test @ Order ( 7 ) public void shouldNotVolunteerForTaskAfterDecline ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 6 , testContext ) ; final var transaction = new TaskTransaction ( ) ; transaction . taskId = this . task . id ; transaction . label = "volunteerForTask" ; final var volunteerId = this . users . get ( 1 ) . id ; transaction . actioneerId = volunteerId ; transaction . attributes = new JsonObject ( ) . put ( "volunteerId" , volunteerId ) ; this . assertDoTransactionError ( transaction , vertx , testContext ) ; }
Check that an user can not be a volunteer if it has declined.
Check that an user can not be a volunteer if it has declined .