コード例 #1
0
 @Test
 public void providesAnAntBuilderFactory() {
   assertThat(registry.getFactory(AntBuilder.class), instanceOf(DefaultAntBuilderFactory.class));
   assertThat(
       registry.getFactory(AntBuilder.class),
       sameInstance((Object) registry.getFactory(AntBuilder.class)));
 }
コード例 #2
0
  @Test
  public void providesAnArtifactPublicationServicesFactory() {
    expectDependencyResolutionServicesCreated();

    assertThat(
        registry.getFactory(ArtifactPublicationServices.class),
        sameInstance(publishServicesFactory));
    assertThat(
        registry.getFactory(ArtifactPublicationServices.class),
        sameInstance(registry.getFactory(ArtifactPublicationServices.class)));
  }
コード例 #3
0
 @Test
 public void providesATaskContainerFactory() {
   assertThat(
       registry.getFactory(TaskContainerInternal.class),
       instanceOf(DefaultTaskContainerFactory.class));
 }