Exemplo n.º 1
0
  @Test
  public void defineTheScopeOfReportInputParams() {

    List<DecreeSequence> decreeSequences = settings.getDecreeSequences();
    List<GeoArea> geoAreas = settings.getGeoAreas();
    List<KonvGroup> konvGroups = settings.getKonvGroups();

    assertThat(decreeSequences, hasItem(decreeSequence));
    assertThat(geoAreas, hasItem(geoArea));
    assertThat(konvGroups, hasItem(konvGroup));
  }
Exemplo n.º 2
0
  @Test
  public void shrinkReportSettingsScopes() {

    settings.shrinkDecreeSequenceScope(decreeSequence);
    settings.shrinkGeoAreaScope(geoArea);
    settings.shrinkKonvGroupScope(konvGroup);

    assertThat(settings.getDecreeSequences(), not(hasItem(decreeSequence)));
    assertThat(settings.getGeoAreas(), not(hasItem(geoArea)));
    assertThat(settings.getKonvGroups(), not(hasItem(konvGroup)));
  }