Пример #1
0
  @Test
  public void shouldRemoveAllSteps() throws Exception {
    TaskConfig config =
        new TaskConfig()
            .add(new FilterSet(), new FilterSet(), new FilterSet())
            .add(new DataSource(), new DataSource(), new DataSource());

    assertNotNull(config.getSteps());
    assertFalse(config.getSteps().isEmpty());

    config.removeAll();

    assertNotNull(config.getSteps());
    assertTrue(config.getSteps().isEmpty());
  }