@Test public void lackOfKonvGroupSettings() { settings.shrinkKonvGroupScope(konvGroup); assertFalse(settings.hasKonvGroupSettings()); }
@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))); }
@Test public void shouldReturnInputKonvGroupListWhenAnEmptyKonvGroupScopeIsFound() { settings.shrinkKonvGroupScope(konvGroup); assertThat(settings.hasKonvGroupSettings(), is(Boolean.FALSE)); final KonvGroup inputKonvGroup = mock(KonvGroup.class); List<KonvGroup> selected = settings.chooseOver(Arrays.asList(inputKonvGroup)); assertThat(selected, hasItems(inputKonvGroup)); assertThat(selected, not(hasItems(konvGroup))); }