Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 446 for amatch (1.72 sec)

  1. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        try {
          builder.put(null, 1);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, Arrays.asList(1, 2, 3));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, 1, 2, 3);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        try {
          builder.put(null, 1);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, Arrays.asList(1, 2, 3));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          builder.putAll(null, 1, 2, 3);
          fail();
        } catch (NullPointerException expected) {
        }
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java

          fail("Expected NullPointerException or UnsupportedOperationException");
        } catch (NullPointerException | UnsupportedOperationException expected) {
        }
      }
    
      public void testMergeNullFunction() {
        try {
          getMap().merge(k0(), v3(), null);
          fail("Expected NullPointerException or UnsupportedOperationException");
        } catch (NullPointerException | UnsupportedOperationException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/OptionalTest.java

        try {
          presentAsSet.add("b");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testAsSet_absentIsImmutable() {
        Set<Object> absentAsSet = Optional.absent().asSet();
        try {
          absentAsSet.add("foo");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testTransform_absent() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

              if (otherElement == null || unsafeCompare(element, otherElement) != 0) {
                return false;
              }
            }
            return true;
          } catch (ClassCastException e) {
            return false;
          } catch (NoSuchElementException e) {
            return false; // concurrent change to other set
          }
        }
        return containsAll(that);
      }
    
      @Override
      public E first() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/AsciiTest.java

        try {
          Ascii.truncate("foobar", 2, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", 8, "1234567890");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          Ascii.truncate("foobar", -1, "...");
          fail();
        } catch (IllegalArgumentException expected) {
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/BaseEncodingTest.java

          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testBase64CannotLowerCase() {
        try {
          base64().lowerCase();
          fail();
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testBase64CannotIgnoreCase() {
        try {
          base64().ignoreCase();
          fail();
        } catch (IllegalStateException expected) {
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Aug 25 16:34:08 GMT 2022
    - 24.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java

                    return values().asList().get(index + 1);
                  });
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      public void testReplaceAll_unsupportedNoOpFunction() {
        try {
          getMap().replaceAll((K k, V v) -> v);
        } catch (UnsupportedOperationException tolerated) {
        }
        expectUnchanged();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 4.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

        try {
          return MessageDigest.getInstance(algorithmName);
        } catch (NoSuchAlgorithmException e) {
          throw new AssertionError(e);
        }
      }
    
      @Override
      public Hasher newHasher() {
        if (supportsClone) {
          try {
            return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes);
          } catch (CloneNotSupportedException e) {
            // falls through
          }
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveIfTester.java

        try {
          Iterator<E> iterator = collection.iterator();
          assertTrue(collection.removeIf(Predicate.isEqual(samples.e0())));
          iterator.next();
          fail("Expected ConcurrentModificationException");
        } catch (ConcurrentModificationException expected) {
          // success
        }
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
      public void testRemoveIf_unsupportedEmptyCollection() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top