Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 292 for GetMethod (0.12 sec)

  1. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/actor/internal/DefaultActorFactorySpec.groovy

            def actor = factory.createBlockingActor(target)
            def testThread = Thread.currentThread()
    
            when:
            actor.dispatch(new MethodInvocation(TargetObject.class.getMethod('doStuff', String.class), ['param'] as Object[]))
    
            then:
            1 * target.doStuff('param') >> {
                assert Thread.currentThread() == testThread
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ZipTestFixture.groovy

                    } else {
                        addDir(entry.name)
                    }
                    addMode(entry.name, entry.getUnixMode())
                    addCompressionMethod(entry.name, entry.getMethod())
                }
            } finally {
                zipFile.close();
            }
        }
    
        void hasCompression(String relativePath, int compressionMethod) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Download.java

            ClassLoader loader = getClass().getClassLoader();
            try {
                Method getEncoderMethod = loader.loadClass("java.util.Base64").getMethod("getEncoder");
                Method encodeMethod = loader.loadClass("java.util.Base64$Encoder").getMethod("encodeToString", byte[].class);
                Object encoder = getEncoderMethod.invoke(null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/main/java/org/gradle/api/reporting/components/internal/RendererUtils.java

        public static String displayValueOf(Object value) {
            String result = null;
            if (value != null) {
                boolean hasCustomToString;
                try {
                    Method toString = value.getClass().getMethod("toString");
                    hasCustomToString = !toString.getDeclaringClass().equals(Object.class);
                } catch (NoSuchMethodException ignore) {
                    hasCustomToString = false;
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 30 23:30:16 UTC 2016
    - 2.2K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/OptionReader.java

                                        optionValueMethod.getMethod().getDeclaringClass().getName()));
                    }
                }
            }
            return valueMethod;
        }
    
        private static String[] getOptionNames(JavaMethod<Object, Collection> optionValueMethod) {
            OptionValues optionValues = optionValueMethod.getMethod().getAnnotation(OptionValues.class);
            return optionValues.value();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 06 09:51:34 UTC 2023
    - 10K bytes
    - Viewed (0)
  6. platforms/core-runtime/files/src/main/java/org/gradle/api/internal/file/archive/impl/AbstractZipEntry.java

                        return ByteStreams.toByteArray(inputStream);
                    }
                }
            });
        }
    
        @Override
        public ZipCompressionMethod getCompressionMethod() {
            switch (entry.getMethod()) {
                case java.util.zip.ZipEntry.STORED:
                    return ZipCompressionMethod.STORED;
                case java.util.zip.ZipEntry.DEFLATED:
                    return ZipCompressionMethod.DEFLATED;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 12:11:00 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ProxyDispatchAdapterTest.groovy

        def proxyForwardsToDispatch() {
            when:
            adapter.getSource().doStuff('param')
    
            then:
            1 * dispatch.dispatch(new MethodInvocation(ProxyTest.class.getMethod('doStuff', String.class), ['param'] as Object[]))
        }
    
        def proxyIsEqualWhenItHasTheSameTypeAndDispatch() {
            def other = new ProxyDispatchAdapter<ProxyTest>(dispatch, ProxyTest.class)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/test/groovy/org/gradle/internal/resource/transport/http/AlwaysFollowAndPreserveMethodRedirectStrategyTest.groovy

            HttpContext context = Mock()
            response.getFirstHeader("location") >> new BasicHeader('location', 'http://redirectTo')
            request.getRequestLine() >> Mock(RequestLine) {
                getMethod() >> httpMethod
            }
            request.getParams() >> Mock(HttpParams)
    
            when:
            def redirect = new AlwaysFollowAndPreserveMethodRedirectStrategy().getRedirect(request, response, context)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/fs/FileSystemClientTest.java

            assertTrue(6 == responseData.getContentLength() || 7 == responseData.getContentLength());
            assertNotNull(responseData.getLastModified());
            assertEquals(Constants.GET_METHOD, responseData.getMethod());
            assertEquals("text/plain", responseData.getMimeType());
            assertTrue(responseData.getUrl().endsWith("test/text1.txt"));
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 8K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/plugin/use/internal/PluginUseScriptBlockMetadataCompiler.java

                        }
    
                        visitMethodCallExpression((MethodCallExpression) target);
                    }
    
                    if (call.getMethod() instanceof ConstantExpression) {
                        ConstantExpression methodName = (ConstantExpression) call.getMethod();
                        if (isOfType(methodName, String.class)) {
                            String methodNameText = methodName.getText();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 28 01:30:32 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top