Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 752 for IllegalArgumentException (0.29 sec)

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

      public void testBigIntegersOffsetExceptions() {
        assertThrows(
            IllegalArgumentException.class,
            () -> DiscreteDomain.bigIntegers().offset(BigInteger.ZERO, -1));
      }
    
      public void testCustomOffsetExceptions() {
        assertThrows(IllegalArgumentException.class, () -> new MyIntegerDomain().offset(0, -1));
        assertThrows(
            IllegalArgumentException.class, () -> new MyIntegerDomain().offset(Integer.MAX_VALUE, 1));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckPositive_maxInt() {
        MathPreconditions.checkPositive("int", Integer.MAX_VALUE);
      }
    
      public void testCheckPositive_minInt() {
        try {
          MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        graph.putEdgeValue(1, 2, "A");
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.unordered(1, 2)));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
        e =
            assertThrows(
                IllegalArgumentException.class, () -> graph.edgeValue(EndpointPair.unordered(2, 1)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/HeadersTest.kt

      @Test fun ofRejectsNullChar() {
        assertFailsWith<IllegalArgumentException> {
          headersOf("User-Agent", "Square\u0000OkHttp")
        }
      }
    
      @Test fun ofMapThrowsOnEmptyName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf("" to "OkHttp").toHeaders()
        }
      }
    
      @Test fun ofMapThrowsOnBlankName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf(" " to "OkHttp").toHeaders()
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/Utils.java

    import java.util.stream.Collectors;
    
    class Utils {
        static <T> T nonNull(T t) {
            if (t == null) {
                throw new IllegalArgumentException();
            }
            return t;
        }
    
        static <T> T nonNull(T t, String name) {
            if (t == null) {
                throw new IllegalArgumentException(name + " cannot be null");
            }
            return t;
        }
    
        static <T> T cast(Class<T> clazz, Object o, String name) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/MathPreconditionsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testCheckPositive_maxInt() {
        MathPreconditions.checkPositive("int", Integer.MAX_VALUE);
      }
    
      public void testCheckPositive_minInt() {
        try {
          MathPreconditions.checkPositive("int", Integer.MIN_VALUE);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/MIEName.java

            int i;
            int len;
            if ( buf.length < TOK_ID_SIZE + MECH_OID_LEN_SIZE ) {
                throw new IllegalArgumentException();
            }
            // TOK_ID
            for ( i = 0; i < TOK_ID.length; i++ ) {
                if ( TOK_ID[ i ] != buf[ i ] ) {
                    throw new IllegalArgumentException();
                }
            }
            // MECH_OID_LEN
            len = 0xff00 & ( buf[ i++ ] << 8 );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        assertThrows(IllegalArgumentException.class, () -> parse("weakValues=true"));
      }
    
      public void testParse_repeatedValueStrength() {
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
    
        assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N4, N5, E12));
        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
        e = assertThrows(IllegalArgumentException.class, () -> addEdge(N2, N1, E12));
        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/InetAddressesTest.java

      public void testForUriStringBad() {
        assertThrows(IllegalArgumentException.class, () -> InetAddresses.forUriString(""));
    
        assertThrows(
            IllegalArgumentException.class, () -> InetAddresses.forUriString("192.168.999.888"));
    
        assertThrows(
            IllegalArgumentException.class, () -> InetAddresses.forUriString("www.google.com"));
    
        assertThrows(IllegalArgumentException.class, () -> InetAddresses.forUriString("[1:2e]"));
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
Back to top