Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for supplierWithProducer (0.3 sec)

  1. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy

            property.type == property.shallowCopy().type
        }
    
        def "shallow copy inherits dependencies of the original"() {
            given:
            def task = Mock(Task)
            def provider = supplierWithProducer(task)
            def property = propertyWithNoValue()
            property.set(provider)
    
            expect:
            assertHasProducer(property.shallowCopy(), task)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 12:47:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            def task1 = Stub(Task)
            def task2 = Stub(Task)
            def task3 = Stub(Task)
            def producer = Stub(Task)
            property.set(supplierWithProducer(task1))
            property.addAll(supplierWithProducer(task2))
            property.add(supplierWithProducer(task3))
    
            expect:
            assertHasProducer(property, task1, task2, task3)
    
            property.attachProducer(owner(producer))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            def task1 = Stub(Task)
            def task2 = Stub(Task)
            def task3 = Stub(Task)
            def producer = Stub(Task)
            property.set(supplierWithProducer(task1))
            property.putAll(supplierWithProducer(task2))
            property.put('a', supplierWithProducer(task3, '1'))
    
            expect:
            assertHasProducer(property, task1, task2, task3)
    
            property.attachProducer(owner(producer))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            def task = Mock(Task)
            def upstream = Mock(Task)
            def property = propertyWithNoValue()
            property.set(supplierWithProducer(upstream))
    
            expect:
            assertHasProducer(property, upstream)
    
            when:
            property.attachProducer(owner(task))
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
Back to top