Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setToConventionIfUnset (0.2 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            when:
            property.setToConventionIfUnset()
    
            then:
            assertValueIs(['4'])
    
            when:
            property.unset()
            property.setToConventionIfUnset()
    
            then:
            assertValueIs(['1'])
            property.explicit
        }
    
        def "property is empty when setToConventionIfUnset if convention not set yet"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            when:
            property.setToConventionIfUnset()
    
            then:
            assertValueIs(['k1': '4'])
    
            when:
            property.unset()
            property.setToConventionIfUnset()
    
            then:
            assertValueIs(['k0': '1'])
            property.explicit
        }
    
        def "property is empty when setToConventionIfUnset if convention not set yet"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            collection.from as List == ["src1"]
    
            when:
            collection.setToConventionIfUnset()
    
            then:
            collection.from as List == ["src1"]
    
            when:
            collection.unset()
    
            then:
            assert !collection.explicit
    
            when:
            collection.setToConventionIfUnset()
    
            then:
            assert collection.explicit
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top