Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 691 for IllegalArgumentException (0.11 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

            long negativeProgressedSize = -100L;
            assertThrows(IllegalArgumentException.class, () -> format.formatProgress(negativeProgressedSize, 10L));
        }
    
        @Test
        void testNegativeProgressedSizeBiggerThanSize() {
            FileSizeFormat format = new FileSizeFormat();
    
            assertThrows(IllegalArgumentException.class, () -> format.formatProgress(100L, 10L));
        }
    
        @Test
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/net/MediaType.java

       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createApplicationType(String subtype) {
        return create(APPLICATION_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "audio" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 02 01:46:40 GMT 2025
    - 48K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantBasePlugin.java

            @Override
            public void apply(Project project) {
                if (project != project.getRootProject()) {
                    throw new IllegalArgumentException("VagrantSetupCheckerPlugin can only be applied to the root project of a build");
                }
    
                project.getGradle().getTaskGraph().whenReady(graph -> {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> reader.read(buf, 0, 11));
    
        assertThrows(IllegalArgumentException.class, () -> reader.skip(-1));
    
        assertThrows(IllegalArgumentException.class, () -> reader.mark(-1));
      }
    
      public void testMethodsThrowWhenClosed() throws IOException {
        CharSequenceReader reader = new CharSequenceReader("");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeGetTest.kt

      override fun parse(string: String): MediaType = string.toMediaType()
    
      override fun assertInvalid(
        string: String,
        exceptionMessage: String?,
      ) {
        val e =
          assertFailsWith<IllegalArgumentException> {
            parse(string)
          }
        assertEquals(exceptionMessage, e.message)
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.1K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Chars.java

       *
       * @param value any value in the range of the {@code char} type
       * @return the {@code char} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Character#MAX_VALUE}
       *     or less than {@link Character#MIN_VALUE}
       */
      public static char checkedCast(long value) {
        char result = (char) value;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/TopKSelector.java

       * relative to the natural ordering of the elements, and returns them via {@link #topK} in
       * ascending order.
       *
       * @throws IllegalArgumentException if {@code k < 0} or {@code k > Integer.MAX_VALUE / 2}
       */
      public static <T extends Comparable<? super T>> TopKSelector<T> least(int k) {
        return least(k, Ordering.natural());
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  8. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 13K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

      }
    
      public void testGetInstance_withTypeVariable() {
        assertThrows(
            IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType()));
      }
    
      public void testPutInstance_withTypeVariable() {
        assertThrows(
            IllegalArgumentException.class,
            () -> map.putInstance(this.<Integer>anyIterableType(), ImmutableList.of(1)));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * @param value any value in the range of the {@code short} type
       * @return the {@code short} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Short#MAX_VALUE} or
       *     less than {@link Short#MIN_VALUE}
       */
      public static short checkedCast(long value) {
        short result = (short) value;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
Back to Top