Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 312 for getStep (2.26 sec)

  1. platforms/ide/tooling-api/src/testFixtures/groovy/org/gradle/integtests/tooling/fixture/ToolingApiModelChecker.groovy

            if (spec instanceof Closure) {
                def getter = spec as Closure
                assert getter(actual) == getter(expected)
            } else if (spec instanceof List) {
                assert spec.size() == 2
                def getter = spec[0] as Closure
                def checker = spec[1]
                def actualValue = getter(actual)
                def expectedValue = getter(expected)
                if (checker instanceof Closure) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 10:26:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DependencyInjectionUsingClassGeneratorBackedInstantiatorTest.groovy

        }
    
        def "injects service using getter injection"() {
            given:
            services.add(String, "string")
    
            when:
            def result = instantiator.newInstance(HasGetterInjection)
    
            then:
            result.someService == 'string'
        }
    
        def "injects service using abstract getter injection"() {
            given:
            services.add(String, "string")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/upgrades/UpgradedProperties.java

         *
         * Here we automatically accept the following cases:
         * - A setter `setX` of an upgraded property is removed
         * - A boolean `isX` of an upgraded property is removed
         * - A new getter `getX` is added, where the old getter is a boolean getter `isX` of an upgraded property
         * - A return type is changed for a getter `getX` of an upgraded property
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/classpath/BasicCallInterceptionTest.groovy

            "normal getter"       | "call site" | "getTestString()"                             | { it.testString }                    | false
            "boolean getter"      | "call site" | "isTestFlag()"                                | { it.testFlag }                      | false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 09:44:54 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  5. pkg/test/framework/components/namespace/namespace.go

    	return func(ctx resource.Context) (err error) {
    		*ns, err = New(ctx, cfg)
    		return
    	}
    }
    
    // Getter for a namespace Instance
    type Getter func() Instance
    
    // Get is a utility method that helps in readability of call sites.
    func (g Getter) Get() Instance {
    	return g()
    }
    
    // Future creates a Getter for a variable that namespace that will be set at sometime in the future.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 18:12:14 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorInjectDecoratedTest.groovy

        }
    
        def "cannot attach @Inject annotation to non getter method"() {
            when:
            generator.generate(NonGetterInjectBean)
    
            then:
            def e = thrown(ClassGenerationException)
            e.cause.message == "Cannot use @Inject annotation on method NonGetterInjectBean.thing() as it is not a property getter."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionServiceInjectionIntegrationTest.groovy

                    }
                }
    
                extensions.create("thing", Thing, "a", 12)
            """
    
            expect:
            succeeds()
        }
    
        def "can inject service using getter"() {
            buildFile """
                class Thing {
                    Thing(String a) {
                    }
    
                    @Inject
                    ObjectFactory getObjects() { }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 5K bytes
    - Viewed (0)
  8. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescSyntheticJavaPropertySymbol.kt

            get() = withValidityAssertion { descriptor.isExtension }
    
        override val getter: KaPropertyGetterSymbol
            get() = withValidityAssertion {
                val getter = descriptor.getter ?: return KaFe10DescDefaultPropertyGetterSymbol(descriptor, analysisContext)
                return KaFe10DescPropertyGetterSymbol(getter, analysisContext)
            }
    
        override val javaGetterSymbol: KaFunctionSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/plugins/propertyServiceInjection/groovy/buildSrc/src/main/java/Download.java

    import org.gradle.workers.WorkerExecutor;
    
    // tag::download[]
    public abstract class Download extends DefaultTask {
        // Use an abstract getter method
        @Inject
        protected abstract ObjectFactory getObjectFactory();
    
        // Alternatively, use a getter method with a dummy implementation
        @Inject
        protected WorkerExecutor getWorkerExecutor() {
            // Method body is ignored
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 816 bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescSyntheticJavaPropertySymbolForOverride.kt

            get() = withValidityAssertion { descriptor.isExtension }
    
        override val getter: KaPropertyGetterSymbol
            get() = withValidityAssertion {
                val getter = descriptor.getter ?: return KaFe10DescDefaultPropertyGetterSymbol(descriptor, analysisContext)
                return KaFe10DescPropertyGetterSymbol(getter, analysisContext)
            }
    
        override val javaGetterSymbol: KaFunctionSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top