Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 613 for IllegalArgumentException (0.12 sec)

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

          final int ii = i;
          ImmutableRangeMap.Builder<Integer, Integer> builder = ImmutableRangeMap.builder();
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.closedOpen(ii, ii), 1));
          assertThrows(IllegalArgumentException.class, () -> builder.put(Range.openClosed(ii, ii), 1));
        }
      }
    
      public void testOverlapRejection() {
        for (Range<Integer> range1 : RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      }
    
      private static void assertCastFails(long value) {
        try {
          UnsignedBytes.checkedCast(value);
          fail("Cast to byte should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessListedClassificationProvider.java

            //    } else {
            //        return null;
            //    }
            //}
            //try {
            //    return CDef.DefMeta.valueOf(searchName);
            //} catch (IllegalArgumentException ignored) { // not found
            //    return null; // handled later
            //}
        }
    
        @Override
        public OptionalThing<String> determineAlias(final Locale locale) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/opensearch/extension/analysis/NumberConcatenationFilterFactory.java

                    suffixWords = WordlistLoader.getWordSet(reader);
                } catch (final IOException e) {
                    throw new IllegalArgumentException("Could not load " + suffixWordsFile.getAbsolutePath(), e);
                }
            } else {
                suffixWords = new CharArraySet(0, false);
            }
        }
    
        @Override
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testGetOnlyElement_noDefault_moreThanOneLessThanFiveElements() {
        Iterator<String> iterator = asList("one", "two").iterator();
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> getOnlyElement(iterator));
        assertThat(expected).hasMessageThat().isEqualTo("expected one element but was: <one, two>");
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetSetCountTester.java

          fail(
              "calling setCount() with a negative count should throw "
                  + "IllegalArgumentException or UnsupportedOperationException");
        } catch (IllegalArgumentException | UnsupportedOperationException expected) {
        }
      }
    
      // TODO: test adding element of wrong type
    
      /**
       * Returns {@link Method} instances for the {@code setCount()} tests that assume multisets support
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/PairedStatsTest.java

        assertThrows(NullPointerException.class, () -> PairedStats.fromByteArray(null));
      }
    
      public void testFromByteArray_withEmptyArrayInputThrowsIllegalArgumentException() {
        assertThrows(IllegalArgumentException.class, () -> PairedStats.fromByteArray(new byte[0]));
      }
    
      public void testFromByteArray_withTooLongArrayInputThrowsIllegalArgumentException() {
        byte[] buffer = MANY_VALUES_PAIRED_STATS.toByteArray();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 21:17:33 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableValueGraph.java

         * silently {@link #addNode(Object) add} each missing endpoint to the graph.
         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

            pkcs8Base64Text.decodeBase64()
              ?: throw IllegalArgumentException("failed to decode private key")
    
          // The private key doesn't tell us its type but it's okay because the certificate knows!
          val keyType =
            when (certificate.publicKey) {
              is ECPublicKey -> "EC"
              is RSAPublicKey -> "RSA"
              else -> throw IllegalArgumentException("unexpected key type: ${certificate.publicKey}")
            }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

        testEncodes(base32().withSeparator("*", 4), "foobar", "MZXW*6YTB*OI==*====");
      }
    
      public void testSeparatorSameAsPadChar() {
        assertThrows(IllegalArgumentException.class, () -> base64().withSeparator("=", 3));
    
        assertThrows(
            IllegalArgumentException.class, () -> base64().withPadChar('#').withSeparator("!#!", 3));
      }
    
      public void testAtMostOneSeparator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
Back to top