Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for wren (0.14 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            when:
            collection.from = ["a", "b"]
            then:
            collection.from as List == [["a", "b"]]
        }
    
        def "can mutate the from collection"() {
            collection.from("src1", "src2")
            def from = collection.from
    
            when:
            from.clear()
    
            then:
            from.empty
            collection.from.empty
    
            when:
            def add1 = from.add('a')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

            when:
            container.whenObjectAdded(action)
    
            then:
            // Does not fire for existing elements
            0 * action._
    
            when:
            addToContainer(a)
    
            then:
            1 * action.execute(a)
            0 * action._
    
            when:
            addToContainer(a)
    
            then:
            0 * action._
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformInputArtifactIntegrationTest.groovy

        // Documents existing behaviour. The absolute path of the input artifact is baked into the workspace identity
        // for incremental transforms, and so when the path changes the outputs are invalidated
        def "can attach #description to input artifact property with incrementally transformed artifact but it has no effect when not caching"() {
            createDirs("a", "b", "c")
            settingsFile << "include 'a', 'b', 'c'"
            setupBuildWithColorTransform()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 27 19:15:32 UTC 2023
    - 51.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.set(someValue())
    
            when:
            property.finalizeValueOnRead()
    
            then:
            0 * _
    
            when:
            def value = property.orNull
    
            then:
            value == someValue()
    
            and:
            1 * host.beforeRead(null) >> null
        }
    
        def "can disallow changes when host is not ready when unsafe read disallowed"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

        def "can change value to empty map"() {
            when:
            property.set([a: 'b'])
            property.empty()
            then:
            assertValueIs([:])
        }
    
        def "can set value using empty map"() {
            when:
            property.set([:])
            then:
            assertValueIs([:])
        }
    
        def "returns immutable copy of value"() {
            when:
            property.set(['k': 'v'])
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

        }
    
        def "throws NullPointerException when provider returns list with null to property"() {
            given:
            property.addAll(Providers.of([null]))
    
            when:
            property.get()
    
            then:
            def ex = thrown(NullPointerException)
        }
    
        def "throws NullPointerException when adding a null value to the property"() {
            when:
            property.add(null)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

                   into 'dest'
                }
            '''
    
            when:
            run 'copy'
            then:
            executedAndNotSkipped(":copy")
    
            when:
            file("files/sub/empty").createDir()
            run 'copy'
            then:
            executedAndNotSkipped(":copy")
    
            when:
            run 'copy'
            then:
            skipped(":copy")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformWithDependenciesIntegrationTest.groovy

                }
            }
        }
    }
    """
        }
    
        def "transform can access artifact dependencies as a set of files when using ArtifactView"() {
            given:
            setupBuildWithSingleStep()
    
            when:
            executer.withArgument("--parallel")
            run ":app:resolveGreen"
    
            then:
            output.count('Transforming') == 5
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 54.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            when:
            configuration.extendsFrom(conf("other"))
            then:
            thrown(InvalidUserDataException)
    
            when:
            configuration.dependencies.add(Mock(Dependency))
            then:
            thrown(InvalidUserDataException)
    
            when:
            configuration.dependencies.remove(Mock(Dependency))
            then:
            thrown(InvalidUserDataException)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

    class DefaultModelRegistryTest extends Specification {
    
        def registry = new ModelRegistryHelper()
    
        def "can maybe get non existing"() {
            when:
            registry.realize("foo")
    
            then:
            thrown IllegalStateException
    
            when:
            def modelElement = registry.find("foo", ModelType.untyped())
    
            then:
            noExceptionThrown()
    
            and:
            modelElement == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
Back to top