Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 613 for IllegalArgumentException (0.13 sec)

  1. 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)
  2. guava-tests/test/com/google/common/io/FilesTest.java

        Files.write(ASCII, temp1, UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp1, temp2));
        assertEquals(ASCII, Files.toString(temp1, UTF_8));
      }
    
      public void testCopySameFile() throws IOException {
        File temp = createTempFile();
        Files.write(ASCII, temp, UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/HashBiMap.java

        return create(16);
      }
    
      /**
       * Constructs a new, empty bimap with the specified expected size.
       *
       * @param expectedSize the expected number of entries
       * @throws IllegalArgumentException if the specified expected size is negative
       */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create(
          int expectedSize) {
        return new HashBiMap<>(expectedSize);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/Stats.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       * @throws IllegalArgumentException if the dataset is empty
       */
      public static double meanOf(Iterable<? extends Number> values) {
        return meanOf(values.iterator());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

      private static Class<? extends Annotation> asAnnotation(Class<?> clazz) {
        if (clazz.isAnnotation()) {
          return (Class<? extends Annotation>) clazz;
        } else {
          throw new IllegalArgumentException(rootLocaleFormat("%s is not an annotation.", clazz));
        }
      }
    
      public void testFeatureEnums() throws Exception {
        assertGoodFeatureEnum(CollectionFeature.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:09:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/settings/BadWordSettings.java

            }
    
            final String validationError = getValidationError(badWord);
            if (validationError != null) {
                throw new IllegalArgumentException("Validation error. " + validationError);
            }
            arraySettings.add(BAD_WORD_SETTINGD_KEY, badWord);
        }
    
        public void delete(final String badWord) {
            if (logger.isDebugEnabled()) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java

                    || FAIL_AT_END.equals(failureBehavior)
                    || FAIL_NEVER.equals(failureBehavior)) {
                this.failureBehavior = failureBehavior;
            } else {
                throw new IllegalArgumentException("Invalid failure behavior (must be one of: '" + FAIL_FAST + "', '"
                        + FAIL_AT_END + "', '" + FAIL_NEVER + "').");
            }
        }
    
        public String getFailureBehavior() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(Object.class).constructor(constructor));
      }
    
      public void testConstructor_declaredBySuperclass() throws NoSuchMethodException {
        Constructor<Object> constructor = Object.class.getConstructor();
        assertThrows(
            IllegalArgumentException.class, () -> TypeToken.of(String.class).constructor(constructor));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        final int INITIAL_COUNT = 92384930;
        final int COUNT_TO_ADD = Integer.MAX_VALUE - INITIAL_COUNT + 1;
    
        when(backingMap.get(KEY)).thenReturn(new AtomicInteger(INITIAL_COUNT));
    
        assertThrows(IllegalArgumentException.class, () -> multiset.add(KEY, COUNT_TO_ADD));
      }
    
      /**
       * Simulate some of the races that can happen on add. We can't easily simulate the race that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLong.java

        return new UnsignedLong(bits);
      }
    
      /**
       * Returns an {@code UnsignedLong} representing the same value as the specified {@code long}.
       *
       * @throws IllegalArgumentException if {@code value} is negative
       * @since 14.0
       */
      @CanIgnoreReturnValue
      public static UnsignedLong valueOf(long value) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
Back to top