Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 145 for getMethods (0.22 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

              @Override
              protected ExecutorService delegate() {
                return delegate;
              }
            };
        Method closeMethod;
        try {
          closeMethod = wrapper.getClass().getMethod("close");
        } catch (NoSuchMethodException e) {
          assertThat(isAndroid() || isBeforeJava19()).isTrue();
          return; // close() doesn't exist, so we can't test it.
        }
        closeMethod.invoke(wrapper);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 18:45:52 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

        }
    
      private fun loomThreadFactory(): ThreadFactory {
        val ofVirtual = Thread::class.java.getMethod("ofVirtual").invoke(null)
    
        return Class
          .forName("java.lang.Thread\$Builder")
          .getMethod("factory")
          .invoke(ofVirtual) as ThreadFactory
      }
    
      private fun isLoom(): Boolean = getPlatformSystemProperty() == LOOM_PROPERTY
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

      @J2ktIncompatible
      public void testAllOverloads_checkArgument() throws Exception {
        for (ImmutableList<Class<?>> sig : allSignatures(boolean.class)) {
          Method checkArgumentMethod =
              Preconditions.class.getMethod("checkArgument", sig.toArray(new Class<?>[] {}));
          checkArgumentMethod.invoke(null /* static method */, getParametersForSignature(true, sig));
    
          Object[] failingParams = getParametersForSignature(false, sig);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/PreconditionsTest.java

      @J2ktIncompatible
      public void testAllOverloads_checkArgument() throws Exception {
        for (ImmutableList<Class<?>> sig : allSignatures(boolean.class)) {
          Method checkArgumentMethod =
              Preconditions.class.getMethod("checkArgument", sig.toArray(new Class<?>[] {}));
          checkArgumentMethod.invoke(null /* static method */, getParametersForSignature(true, sig));
    
          Object[] failingParams = getParametersForSignature(false, sig);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

        Feature<?>[] presentFeatures;
        Feature<?>[] absentFeatures;
        try {
          presentFeatures = (Feature<?>[]) annotationClass.getMethod("value").invoke(testerAnnotation);
          absentFeatures = (Feature<?>[]) annotationClass.getMethod("absent").invoke(testerAnnotation);
        } catch (Exception e) {
          throw new IllegalArgumentException("Error extracting features from tester annotation.", e);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

        init {
          isAvailable =
            if (majorVersion != null) {
              majorVersion >= 9
            } else {
              try {
                // also present on JDK8 after build 252.
                SSLSocket::class.java.getMethod("getApplicationProtocol")
                true
              } catch (nsme: NoSuchMethodException) {
                false
              }
            }
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu May 29 16:52:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

      }
    
      @AfterEach
      fun checkForPinning() {
        assertThat(capturedOut.toString()).isEmpty()
      }
    
      private fun newVirtualThreadPerTaskExecutor(): ExecutorService =
        Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService
    
      @Test
      fun testHttpsRequest() {
        MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient ->
          mockServerClient
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.7K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/base/internal/Finalizer.java

           * much just shut down and make sure we don't keep it alive any longer than necessary.
           */
          return null;
        }
        try {
          return finalizableReferenceClass.getMethod("finalizeReferent");
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
      }
    
      private static @Nullable Field getInheritableThreadLocalsField() {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

            annotationClass.getAnnotation(Inherited.class));
    
        for (String propertyName : new String[] {"value", "absent"}) {
          Method method = null;
          try {
            method = annotationClass.getMethod(propertyName);
          } catch (NoSuchMethodException e) {
            throw new AssertionError("Annotation is missing required method", e);
          }
          Class<?> returnType = method.getReturnType();
          assertTrue(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

            // Test that close method is available (inherited from parent)
            try {
                // Just verify the method exists, don't actually call it
                crawlerEngineClient.getClass().getMethod("close");
                assertTrue(true);
            } catch (NoSuchMethodException e) {
                fail("close method should exist");
            }
        }
    
        // Test toString method
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
Back to top