Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for brokenSupplier (0.21 sec)

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

                : provider."$getter"()
        }
    
        /**
         * A test provider that always fails.
         */
        ProviderInternal<T> brokenSupplier() {
            return brokenSupplier(type())
        }
    
        /**
         * A test provider that always fails.
         */
        ProviderInternal brokenSupplier(Class type) {
            return new AbstractMinimalProvider() {
                @Override
                Class<T> getType() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 06:53:07 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

        }
    
        def "reports failure to query value from provider and property has display name"() {
            given:
            def property = propertyWithNoValue()
            property.set(brokenSupplier())
            property.attachOwner(owner(), displayName("<property>"))
    
            when:
            property.present
    
            then:
            def e = thrown(AbstractProperty.PropertyQueryException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            then:
            def e = thrown IllegalStateException
            e.message == 'The value for this property is final and cannot be changed any further.'
    
            when:
            property.putAll brokenSupplier()
    
            then:
            def e2 = thrown IllegalStateException
            e2.message == 'The value for this property is final and cannot be changed any further.'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
Back to top