Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,577 for METHOD (0.1 sec)

  1. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/internal/ComponentTypeModelRuleExtractorTest.groovy

            def ruleDescription = getStringDescription(ruleMethod.method)
    
            when:
            extract(ruleMethod)
    
            then:
            def ex = thrown(InvalidModelRuleDeclarationException)
            ex.message == """Type ${fullyQualifiedNameOf(ruleClass)} is not a valid rule source:
    - Method ${ruleDescription} is not a valid rule method: ${expectedMessage}"""
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecationMessagesTest.groovy

        def "logs replaced method message"() {
            when:
            DeprecationLogger.deprecateMethod(DeprecationLogger, "method()").replaceWith("replacementMethod()").willBeRemovedInGradle9().undocumented().nagUser()
    
            then:
            expectMessage "The DeprecationLogger.method() method has been deprecated. This is scheduled to be removed in Gradle ${NEXT_GRADLE_VERSION}. Please use the replacementMethod() method instead."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. cmd/auth-handler_test.go

    		}
    	}
    }
    
    // Provides a fully populated http request instance, fails otherwise.
    func mustNewRequest(method string, urlStr string, contentLength int64, body io.ReadSeeker, t *testing.T) *http.Request {
    	req, err := newTestRequest(method, urlStr, contentLength, body)
    	if err != nil {
    		t.Fatalf("Unable to initialize new http request %s", err)
    	}
    	return req
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/metaobject/BeanDynamicObjectTest.groovy

            def args = arguments as Object[]
            when:
            dynamicObject.invokeMethod(method, args)
    
            then:
            def e = thrown(MissingMethodException)
            assertMethodMissing(e, method, args)
    
            where:
            method            | arguments
            "unknown"         | [12]
            "methodWithClass" | [0]
            "methodWithValue" | [Integer]
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. platforms/extensibility/test-kit/src/main/java/org/gradle/testkit/runner/GradleRunner.java

     * <p>
     * Typically, the test code using the runner will programmatically create a build (e.g. by writing Gradle build files to a temporary space) to execute.
     * The build to execute is effectively specified by the {@link #withProjectDir(File)}} method.
     * It is a requirement that a project directory be set.
     * <p>
     * The {@link #withArguments(String...)} method allows the build arguments to be specified,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/types/objectpath/objectpath.go

    				if index >= t.NumMethods() {
    					return nil, fmt.Errorf("method index %d out of range [0-%d)", index, t.NumMethods())
    				}
    				obj = t.Method(index) // Id-ordered
    
    			case *types.Named:
    				if index >= t.NumMethods() {
    					return nil, fmt.Errorf("method index %d out of range [0-%d)", index, t.NumMethods())
    				}
    				obj = t.Method(index)
    
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/junit4/AbstractJUnit4CategoriesOrTagsCoverageIntegrationTest.groovy

            private String generateTestMethod(AbstractJUnitCategoriesOrTagsCoverageIntegrationSpec.TestMethod method) {
                return """
                    @Test
                    ${method.isIgnoredOrDisabled ? "@Ignore" : ""}
                    ${categoryAnnotation(method.categoriesOrTags)}
                    public void ${method.name}() {
                        ${method.shouldPass ? "assert true;" : "assert false;"}
                    }
                """
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  8. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

            assert path.startsWith('/')
            assert path == request.pathInfo
            assert stubRequest.headers["x-amz-acl"] == request.getHeader("x-amz-acl")
            assert stubRequest.method == request.method
            assert stubRequest.params.every {
                request.getParameterMap()[it.key] == it.value
            }
        }
    
        boolean requestMatches(HttpStub httpStub, HttpServletRequest request) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  9. maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java

            // Bind inner providers
            for (Method method : key.getRawType().getDeclaredMethods()) {
                if (method.isAnnotationPresent(Provides.class)) {
                    if (method.getTypeParameters().length != 0) {
                        throw new DIException("Parameterized method are not supported " + method);
                    }
                    Object qualifier = ReflectionUtils.qualifierOf(method);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Optional.java

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is similar to Java 8's {@code
       * Optional.orElseGet}, except when {@code supplier} returns {@code null}. In this case this
       * method throws an exception, whereas the Java 8+ method returns the {@code null} to the caller.
       *
       * @throws NullPointerException if this optional's value is absent and the supplier returns {@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top