Exemplo n.º 1
0
  @After
  public void resetServices() {
    final List<TaskModel> tasks = taskServiceStub.cleanup();
    final StringBuffer msg = new StringBuffer();
    for (final TaskModel task : tasks) {
      final ProcessTaskModel processTask = (ProcessTaskModel) task;

      msg.append(processTask.getAction()).append(", ");
    }
  }
  @After
  public void resetServices() {
    final List<TaskModel> tasks = taskServiceStub.cleanup();
    final StringBuffer msg = new StringBuffer();
    for (final TaskModel task : tasks) {
      final ProcessTaskModel processTask = (ProcessTaskModel) task;

      msg.append(processTask.getAction()).append(", ");
    }

    assertTrue("tasks should be empty after test execution. Left: " + msg, tasks.isEmpty());
  }