@Test public void providesAnAntBuilderFactory() { assertThat(registry.getFactory(AntBuilder.class), instanceOf(DefaultAntBuilderFactory.class)); assertThat( registry.getFactory(AntBuilder.class), sameInstance((Object) registry.getFactory(AntBuilder.class))); }
@Test public void providesAnArtifactPublicationServicesFactory() { expectDependencyResolutionServicesCreated(); assertThat( registry.getFactory(ArtifactPublicationServices.class), sameInstance(publishServicesFactory)); assertThat( registry.getFactory(ArtifactPublicationServices.class), sameInstance(registry.getFactory(ArtifactPublicationServices.class))); }
@Test public void providesATaskContainerFactory() { assertThat( registry.getFactory(TaskContainerInternal.class), instanceOf(DefaultTaskContainerFactory.class)); }