Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 110 for setdefault (0.06 sec)

  1. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       * testing {@link Object#equals} because more than one sample instances are needed for testing
       * inequality.
       */
      protected final <T> void setDefault(Class<T> type, T value) {
        tester.setDefault(type, value);
      }
    
      /**
       * Sets two distinct values for {@code type}. These values can be used for both null pointer
       * testing and equals testing.
       *
       * @since 17.0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/ResourcesTest.java

          Thread.currentThread().setContextClassLoader(oldContextLoader);
        }
      }
    
      @AndroidIncompatible // .class files aren't available
      public void testNulls() {
        new NullPointerTester()
            .setDefault(URL.class, classfile(ResourcesTest.class))
            .testAllPublicStaticMethods(Resources.class);
      }
    
      private static URL classfile(Class<?> c) {
        return c.getResource(c.getSimpleName() + ".class");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

                String username = System.getenv("MVNW_USERNAME");
                char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
                Authenticator.setDefault(new Authenticator() {
                    @Override
                    protected PasswordAuthentication getPasswordAuthentication() {
                        return new PasswordAuthentication(username, password);
                    }
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 4.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

          object : DelegatingServerSocketFactory(getDefault()) {
            override fun configureServerSocket(serverSocket: ServerSocket): ServerSocket {
              serverSocket.receiveBufferSize = socketBufferSize
              return serverSocket
            }
          }
        client =
          client.newBuilder()
            .socketFactory(
              object : DelegatingSocketFactory(getDefault()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashingTest.java

        }
      }
    
      public void testNullPointers() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(byte[].class, "secret key".getBytes(UTF_8))
                .setDefault(HashCode.class, HashCode.fromLong(0));
        tester.testAllPublicStaticMethods(Hashing.class);
      }
    
      public void testSeedlessHashFunctionEquals() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

              .put("HmacSHA512", SHA512_KEY, Hashing.hmacSha512(SHA512_KEY))
              .build();
    
      public void testNulls() {
        NullPointerTester tester =
            new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY);
        tester.testAllPublicConstructors(MacHashFunction.class);
        tester.testAllPublicInstanceMethods(new MacHashFunction("HmacMD5", MD5_KEY, "toString"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/NullPointerTester.java

     * When the non-null default value for a particular parameter type cannot be provided by {@code
     * NullPointerTester}, the caller can provide a custom non-null default value for the parameter type
     * via {@link #setDefault}.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class NullPointerTester {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

     * When the non-null default value for a particular parameter type cannot be provided by {@code
     * NullPointerTester}, the caller can provide a custom non-null default value for the parameter type
     * via {@link #setDefault}.
     *
     * @author Kevin Bourrillion
     * @since 10.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    @ElementTypesAreNonnullByDefault
    public final class NullPointerTester {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. tensorflow/api_template.__init__.py

    import sysconfig as _sysconfig
    import importlib
    import inspect as _inspect
    import os as _os
    import site as _site
    import sys as _sys
    
    _os.environ.setdefault("ENABLE_RUNTIME_UPTIME_TELEMETRY", "1")
    
    # Do not remove this line; See https://github.com/tensorflow/tensorflow/issues/42596
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow  # pylint: disable=unused-import
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 02 22:16:02 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ResourcesTest.java

          Thread.currentThread().setContextClassLoader(oldContextLoader);
        }
      }
    
      @AndroidIncompatible // .class files aren't available
      public void testNulls() {
        new NullPointerTester()
            .setDefault(URL.class, classfile(ResourcesTest.class))
            .testAllPublicStaticMethods(Resources.class);
      }
    
      private static URL classfile(Class<?> c) {
        return c.getResource(c.getSimpleName() + ".class");
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top