protocols/src/test/java/eu/internetofus/common/protocols/EatTogetherV2ProtocolITC.java
/**
   * Check that can not modify the volunteers of a closed task.
   *
   * @param label       of the task transaction that can not be done.
   * @param order       of the parameterized test.
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Check that can not modify the volunteers of a closed task.
@param label       of the task transaction that can not be done.
@param order       of the parameterized test.
@param vertx       event bus to use.
@param testContext context to do the test.
Check that can not modify the volunteers of a closed task . @param label of the task transaction that can not be done . @param order of the parameterized test . @param vertx event bus to use . @param testContext context to do the test .
@ParameterizedTest(name = "Should not do the task transaction {0}")
  @CsvSource(value = { "volunteerForTask:0", "refuseTask:1", "acceptVolunteer:2",
      "refuseVolunteer:3" }, delimiter = ':')
  @Order(18)
  public void shouldNotChangeVolunteerStatesWhenTaskIsClosed(final String label, final String order, final Vertx vertx,
      final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(17 + Integer.parseInt(order), testContext);
    final var taskTransaction = new TaskTransaction();
    taskTransaction.actioneerId = this.task.requesterId;
    taskTransaction.taskId = this.task.id;
    taskTransaction.label = label;
    final var volunteerId = this.users.get(5).id;
    taskTransaction.attributes = new JsonObject().put("volunteerId", volunteerId);
    this.assertDoTransactionError(taskTransaction, vertx, testContext);
  }
@ ParameterizedTest ( name = "Should not do the task transaction {0}" ) @ CsvSource ( value = { "volunteerForTask:0" , "refuseTask:1" , "acceptVolunteer:2" , "refuseVolunteer:3" } , delimiter = ':' ) @ Order ( 18 ) public void shouldNotChangeVolunteerStatesWhenTaskIsClosed ( final String label , final String order , final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 17 + Integer . parseInt ( order ) , testContext ) ; final var taskTransaction = new TaskTransaction ( ) ; taskTransaction . actioneerId = this . task . requesterId ; taskTransaction . taskId = this . task . id ; taskTransaction . label = label ; final var volunteerId = this . users . get ( 5 ) . id ; taskTransaction . attributes = new JsonObject ( ) . put ( "volunteerId" , volunteerId ) ; this . assertDoTransactionError ( taskTransaction , vertx , testContext ) ; }
Check that can not modify the volunteers of a closed task.
Check that can not modify the volunteers of a closed task .