Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 613 for IllegalArgumentException (0.22 sec)

  1. android/guava-tests/test/com/google/common/base/AsciiTest.java

      public void testTruncateIllegalArguments() {
        assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 2, "..."));
    
        assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 8, "1234567890"));
    
        assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, "..."));
    
        assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, ""));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      public <T> void testWhere_incompatibleGenericArrayMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<T[]>() {}.capture(), String.class));
      }
    
      public <T> void testWhere_incompatibleParameterizedTypeMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<Iterable<T>>() {}.capture(), List.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Network.java

       *
       * <p>If this network is directed, the endpoints must be ordered.
       *
       * @throws IllegalArgumentException if there are multiple parallel edges connecting {@code nodeU}
       *     to {@code nodeV}
       * @throws IllegalArgumentException if either endpoint is not an element of this network
       * @throws IllegalArgumentException if the endpoints are unordered and the network is directed
       * @since 27.1
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/TlsVersion.kt

          return when (javaName) {
            "TLSv1.3" -> TLS_1_3
            "TLSv1.2" -> TLS_1_2
            "TLSv1.1" -> TLS_1_1
            "TLSv1" -> TLS_1_0
            "SSLv3" -> SSL_3_0
            else -> throw IllegalArgumentException("Unexpected TLS version: $javaName")
          }
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/QuantilesTest.java

      public void testScale_zero() {
        assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(0));
      }
    
      public void testScale_negative() {
        assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(-4));
      }
    
      public void testScale_index_negative() {
        Quantiles.Scale intermediate = Quantiles.scale(10);
        assertThrows(IllegalArgumentException.class, () -> intermediate.index(-1));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/HostSpecifierTest.java

          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
          assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
          assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(1, 2, "A");
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
                () -> graph.edgeValueOrDefault(EndpointPair.unordered(1, 2), "default"));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
        e =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

      public <T> void testWhere_incompatibleGenericArrayMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<T[]>() {}.capture(), String.class));
      }
    
      public <T> void testWhere_incompatibleParameterizedTypeMapping() {
        assertThrows(
            IllegalArgumentException.class,
            () -> new TypeResolver().where(new TypeCapture<Iterable<T>>() {}.capture(), List.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/IntMathTest.java

          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(a, 3));
          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(3, a));
        }
      }
    
      public void testGCDNegativeZeroThrows() {
        for (int a : NEGATIVE_INTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(a, 0));
          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(0, a));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top