Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 176 for instantiatorFactory (0.54 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

        }
    
        def "creates isolated managed interface"() {
            def instantiator = instantiatorFactory().inject()
            def original = instantiator.newInstance(BeanInterface)
            original.prop1 = "a"
    
            given:
            _ * managedFactoryRegistry.lookup(_) >> instantiatorFactory().managedFactory
    
            expect:
            def isolated = isolatableFactory.isolate(original)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/DefaultFlatDirArtifactRepositoryTest.groovy

    import org.gradle.api.model.ObjectFactory
    import org.gradle.internal.component.external.model.ModuleComponentArtifactMetadata
    import org.gradle.internal.instantiation.InstantiatorFactory
    import org.gradle.internal.resource.ExternalResourceRepository
    import org.gradle.internal.resource.local.LocallyAvailableResourceFinder
    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/TypedDomainObjectContainerWrapperTest.groovy

    class TypedDomainObjectContainerWrapperTest extends Specification {
    
        DefaultPolymorphicDomainObjectContainer<Type> parent = new DefaultPolymorphicDomainObjectContainer<Type>(Type, TestUtil.instantiatorFactory().decorateLenient(), TestUtil.instantiatorFactory().decorateLenient(), CollectionCallbackActionDecorator.NOOP)
    
        def setup() {
            parent.add(type("typeOne"))
            parent.add(type("typeTwo"))
            parent.add(subtype("subTypeOne"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 5K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/DefaultConventionTest.groovy

    import static org.junit.Assert.fail
    
    class DefaultConventionTest {
        Convention convention
    
        TestPluginConvention1 convention1
        TestPluginConvention2 convention2
    
        Instantiator instantiator = TestUtil.instantiatorFactory().decorateLenient()
    
        @Before void setUp() {
            convention = new DefaultConvention(instantiator)
            convention1 = new TestPluginConvention1()
            convention2 = new TestPluginConvention2()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutorTest.groovy

                ToUpperCase
            )), TestUtil.instantiatorFactory().decorateLenient(), shouldNotFail())
        }
    
        void withNonCacheableToUpperCaseRule() {
            rule = new InstantiatingAction<Details>(DefaultConfigurableRules.of(DefaultConfigurableRule.of(
                ToUpperCaseNotCached
            )), TestUtil.instantiatorFactory().decorateLenient(), shouldNotFail())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/plugins/DslObjectTest.groovy

            dsl.asDynamicObject
    
            then:
            thrown(IllegalStateException)
        }
    
        static class Thing {}
    
        def "works for dsl object"() {
            when:
            new DslObject(TestUtil.instantiatorFactory().decorateLenient().newInstance(Thing))
    
            then:
            notThrown(Exception)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/internal/tasks/DefaultSourceSetContainerTest.groovy

        def "can create a source set"() {
            given:
            def container = new DefaultSourceSetContainer(TestFiles.resolver(), TestFiles.taskDependencyFactory(), TestFiles.fileCollectionFactory(), TestUtil.instantiatorFactory().decorateLenient(), TestUtil.objectFactory(), CollectionCallbackActionDecorator.NOOP)
    
            when:
            SourceSet set = container.create("main")
    
            then:
            set instanceof DefaultSourceSet
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/resolver/MavenResolverTest.groovy

            def lister = new InstantiatingAction<ComponentMetadataListerDetails>(DefaultConfigurableRules.of(Stub(ConfigurableRule)), TestUtil.instantiatorFactory().inject(), Stub(InstantiatingAction.ExceptionHandler))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/DefaultDomainObjectCollectionFactoryTest.groovy

    import org.gradle.util.TestUtil
    import spock.lang.Specification
    
    class DefaultDomainObjectCollectionFactoryTest extends Specification {
        def factory = new DefaultDomainObjectCollectionFactory(TestUtil.instantiatorFactory(), TestUtil.services(), CollectionCallbackActionDecorator.NOOP, Stub(MutationGuard))
    
        def "creates container with decorated elements"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 12 02:49:30 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/caching/internal/controller/DefaultBuildCacheControllerFactoryTest.groovy

        def buildOperationRunner = new TestBuildOperationRunner()
        def buildOperationProgressEmitter = new NoOpBuildOperationProgressEventEmitter()
        def config = new DefaultBuildCacheConfiguration(TestUtil.instantiatorFactory().inject(), [
            new DefaultBuildCacheServiceRegistration(DirectoryBuildCache, TestDirectoryBuildCacheServiceFactory),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:46:34 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top