@Test public void expandKonvScope() { settings.expandKonvScope(konv); assertTrue(settings.contains(konv)); }
@Test public void shouldExpandDecreeSequenceGroupScope() { settings.expandDecreeSequenceGroupScope(group); assertTrue(settings.contains(group)); }
@Test public void shrinkKonvScope() { settings.expandKonvScope(konv); settings.shrinkKonvScope(konv); assertFalse(settings.contains(konv)); }
@Test public void shouldShrinkDecreeSequenceGroupScope() { settings.expandDecreeSequenceGroupScope(group); settings.shrinkDecreeSequenceGroupScope(group); assertFalse(settings.contains(group)); }
@Test public void aReportSettingsShouldNotContainAkonvWhenItIsNotPresentInItsKonvsCollection() throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException { Field konvsField = ReportSettings.class.getDeclaredField("konvs"); konvsField.setAccessible(true); final ArrayList<Konv> konvs = new ArrayList<>(); konvsField.set(settings, konvs); assertFalse(settings.contains(konv)); }