Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 266 for gives (0.08 sec)

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

        }
    
        def "returning null from replace clears collection"() {
            given:
            collection.from(containing(new File("a.txt")))
    
            when:
            collection.replace { null }
    
            then:
            collection.isEmpty()
        }
    
        def "replace transformation runs eagerly"() {
            given:
            Transformer<FileCollection, FileCollection> transform = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

        }
    
        def "adds a single entry using put"() {
            given:
            property.set(['k1': 'v1'])
            property.put('k2', 'v2')
            property.put('k3', 'v3')
    
            expect:
            assertValueIs(['k1': 'v1', 'k2': 'v2', 'k3': 'v3'])
        }
    
        def "put overrides entries added earlier"() {
            given:
            property.set(['k': 'v1'])
            property.put('k', 'v2')
    
    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/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

        }
    
        def "appends a single value using add"() {
            given:
            property.set(toMutable(["abc"]))
            property.add("123")
            property.add("456")
    
            expect:
            assertValueIs(["abc", "123", "456"])
        }
    
        def "appends a single value to string property using GString"() {
            given:
            property.set(toMutable(["abc"]))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

        def "can set value using chaining method"() {
            given:
            def property = propertyWithNoValue()
            property.value(someValue())
    
            expect:
            property.get() == someValue()
        }
    
        def "can set value using provider"() {
            def provider = supplierWithValues(someValue(), someOtherValue(), someValue())
    
            given:
            def property = propertyWithNoValue()
    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/model/internal/registry/DefaultModelRegistryTest.groovy

            def action = Mock(Transformer)
    
            given:
            registry.register("bar") { it.unmanaged String, Integer, action }
            registry.registerInstance("foo", 12.toInteger())
            action.transform(12) >> "[12]"
    
            expect:
            registry.realize("bar") == "[12]"
        }
    
        def "parent of input is implicitly closed when input is not known"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  6. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishJavaIntegTest.groovy

                   testImplementation "junit:junit:4.13"
               }
    """
        }
    
        void "can publish jar and descriptor to ivy repository"() {
            requiresExternalDependencies = true
            given:
            createBuildScripts("""
                publishing {
                    publications {
                        ivy(IvyPublication) {
                            from components.java
                        }
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:36:23 UTC 2023
    - 49.8K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/Project.java

         * property.</li>
         *
         * <li>If this project has an extra property with the given name, return the value of the property.</li>
         *
         * <li>If this project has a task with the given name, return the task.</li>
         *
         * <li>Search up through this project's ancestor projects for a convention property or extra property with the
         * given name.</li>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 04:56:22 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/AbstractDomainObjectCollectionSpec.groovy

        def "can check for membership"() {
            given:
            addToContainer(b)
            addToContainer(a)
    
            expect:
            !container.contains(c)
            container.contains(a)
        }
    
        def "provider for element is queried when membership checked"() {
            containerAllowsExternalProviders()
            def provider = Mock(ProviderInternal)
    
            given:
            addToContainer(b)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 52.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradlePomModuleDescriptorParserTest.groovy

    import static org.gradle.api.internal.component.ArtifactType.MAVEN_POM
    
    class GradlePomModuleDescriptorParserTest extends AbstractGradlePomModuleDescriptorParserTest {
        def "parses simple pom"() {
            given:
            pomFile << """
    <project>
        <modelVersion>4.0.0</modelVersion>
        <groupId>group-one</groupId>
        <artifactId>artifact-one</artifactId>
        <version>version-one</version>
        <name>Test Artifact One</name>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 75.4K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy

            } else if (value instanceof Node) {
                return [value]
            } else {
                return value
            }
        }
    
        def "runs finalizer and its dependencies after finalized task"() {
            given:
            Task dep = task("dep", type: Async)
            Task finalizerDep1 = task("finalizerDep1", type: Async)
            Task finalizerDep2 = task("finalizerDep2", type: Async)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 93.5K bytes
    - Viewed (0)
Back to top