示例#1
0
  @Test
  public void expandKonvScope() {

    settings.expandKonvScope(konv);

    assertTrue(settings.contains(konv));
  }
示例#2
0
  @Test
  public void shouldExpandDecreeSequenceGroupScope() {

    settings.expandDecreeSequenceGroupScope(group);

    assertTrue(settings.contains(group));
  }
示例#3
0
  @Test
  public void shrinkKonvScope() {
    settings.expandKonvScope(konv);

    settings.shrinkKonvScope(konv);

    assertFalse(settings.contains(konv));
  }
示例#4
0
  @Test
  public void shouldShrinkDecreeSequenceGroupScope() {

    settings.expandDecreeSequenceGroupScope(group);
    settings.shrinkDecreeSequenceGroupScope(group);

    assertFalse(settings.contains(group));
  }
示例#5
0
  @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));
  }