コード例 #1
0
  @Test
  public void should_init_forceCFCreation_to_default_value() throws Exception {
    doCallRealMethod().when(extractor).initForceCFCreation(configMap);
    boolean actual = extractor.initForceCFCreation(configMap);

    assertThat(actual).isFalse();
  }
コード例 #2
0
  @Test
  public void should_init_forceCFCreation() throws Exception {
    configMap.put(FORCE_CF_CREATION_PARAM, true);

    doCallRealMethod().when(extractor).initForceCFCreation(configMap);
    boolean actual = extractor.initForceCFCreation(configMap);

    assertThat(actual).isTrue();
  }