Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 4,787 for _new (0.07 sec)

  1. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

      @Override
      public void setUp() throws Exception {
        super.setUp();
        reference = new ValidTestObject(1, 2);
        equalsTester = new EqualsTester();
        equalObject1 = new ValidTestObject(1, 2);
        equalObject2 = new ValidTestObject(1, 2);
        notEqualObject1 = new ValidTestObject(0, 2);
      }
    
      /** Test null reference yields error */
      public void testAddNullReference() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeParameterTest.java

        Method method = TypeParameterTest.class.getDeclaredMethod("testEquals");
        new EqualsTester()
            .addEqualityGroup(new TypeParameter<A>() {}, new TypeParameter<A>() {})
            .addEqualityGroup(new TypeParameter<B>() {})
            .testEquals();
      }
    
      public void testNullPointers() {
        new NullPointerTester().testAllPublicStaticMethods(TypeParameter.class);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. compat/maven-model/src/test/java/org/apache/maven/model/BuildTest.java

     *
     */
    class BuildTest {
    
        @Test
        void testHashCodeNullSafe() {
            new Build().hashCode();
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(new Build().equals(null));
    
            new Build().equals(new Build());
        }
    
        @Test
        void testEqualsIdentity() {
            Build thing = new Build();
            assertTrue(thing.equals(thing));
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

            return set.subSet(firstInclusive, lastExclusive);
          } else {
            throw new IllegalArgumentException();
          }
        }
    
        @Override
        public E belowSamplesLesser() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public E belowSamplesGreater() {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public E aboveSamplesLesser() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

        that can monitor, rewrite, and retry calls. The [interceptors doc][interceptors] is a full
        introduction to this new API.
    
     *  New: APIs to iterate and selectively clear the response cache.
     *  New: Support for SOCKS proxies.
     *  New: Support for `TLS_FALLBACK_SCSV`.
     *  New: Update HTTP/2 support to `h2-16` and `hpack-10`.
     *  New: APIs to prevent retrying non-idempotent requests.
     *  Fix: Drop NPN support. Going forward we support ALPN only.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  6. docs/recipes.md

        ```java
          private final OkHttpClient client = new OkHttpClient();
    
          public void run() throws Exception {
            Request request = new Request.Builder()
                .url("https://publicobject.com/helloworld.txt")
                .build();
    
            try (Response response = client.newCall(request).execute()) {
              if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Feb 18 08:52:22 UTC 2022
    - 40.2K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java

                    + "</doc>";
    
            final ResponseData responseData = new ResponseData();
            responseData.setResponseBody(ResourceUtil.getResourceAsFile("extractor/test.xml"), false);
            responseData.setCharSet(Constants.UTF_8);
            final ResultData resultData = xmlTransformer.transform(responseData);
            assertEquals(result, new String(resultData.getData(), Constants.UTF_8));
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        checkEntryNotNull(k1, v1);
        return new SingletonImmutableBiMap<K, V>(k1, v1);
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2));
      }
    
      public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3) {
        return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2, k3, v3));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

      private static Test testsForHashMapNullKeysForbidden() {
        return wrappedHashMapTests(
            new WrappedHashMapGenerator() {
              @Override
              Map<String, String> wrap(final HashMap<String, String> map) {
                if (map.containsKey(null)) {
                  throw new NullPointerException();
                }
                return new AbstractMap<String, String>() {
                  @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/RepositoryUtils.java

                if (lrm != null && lrm.getRepository().getBasedir().equals(new File(repository.getBasedir()))) {
                    return session;
                }
                newSession = new DefaultRepositorySystemSession(session);
            } else {
                newSession = new DefaultRepositorySystemSession(h -> false); // no close handle used
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top