コード例 #1
0
  @Test
  public void should_init_empty_entity_packages() throws Exception {
    doCallRealMethod().when(extractor).initEntityPackages(configMap);
    List<String> actual = extractor.initEntityPackages(configMap);

    assertThat(actual).isEmpty();
  }
コード例 #2
0
  @Test
  public void should_init_entity_packages() throws Exception {
    configMap.put(ENTITY_PACKAGES_PARAM, "my.package.entity,another.package.entity,third.package");

    doCallRealMethod().when(extractor).initEntityPackages(configMap);
    List<String> actual = extractor.initEntityPackages(configMap);

    assertThat(actual)
        .containsExactly("my.package.entity", "another.package.entity", "third.package");
  }