Package org.gradle.api.internal.artifacts.configurations

Examples of org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer


        ModuleDescriptorConverter fileModuleDescriptorConverter = context.mock(ModuleDescriptorConverter.class, "file");
        IvyFactory ivyFactory = context.mock(IvyFactory.class);
        IvyDependencyResolver ivyDependencyResolver = context.mock(IvyDependencyResolver.class);
        IvyDependencyPublisher ivyDependencyPublisher = context.mock(IvyDependencyPublisher.class);
        ClassGenerator classGenerator = new AsmBackedClassGenerator();
        DefaultConfigurationContainer configurationContainer = (DefaultConfigurationContainer)
                new DefaultConfigurationContainerFactory(clientModuleRegistry, settingsConverter,
                        resolveModuleDescriptorConverter, publishModuleDescriptorConverter,
                        fileModuleDescriptorConverter, ivyFactory,
                        ivyDependencyResolver, ivyDependencyPublisher, classGenerator).createConfigurationContainer(resolverProviderDummy,
                        dependencyMetaDataProviderStub, context.mock(DomainObjectContext.class));

        assertThat(configurationContainer.getIvyService(), instanceOf(ErrorHandlingIvyService.class));
        ErrorHandlingIvyService errorHandlingService = (ErrorHandlingIvyService) configurationContainer.getIvyService();

        assertThat(errorHandlingService.getIvyService(), instanceOf(ShortcircuitEmptyConfigsIvyService.class));
        ShortcircuitEmptyConfigsIvyService service = (ShortcircuitEmptyConfigsIvyService) errorHandlingService.getIvyService();

        assertThat(service.getIvyService(), instanceOf(DefaultIvyService.class));
View Full Code Here

TOP

Related Classes of org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.