Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 669 for IllegalArgumentException (0.21 sec)

  1. guava-tests/test/com/google/common/math/IntMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (int x : NEGATIVE_INTEGER_CANDIDATES) {
          try {
            IntMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MoreCollectorsTest.java

          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).contains("1, 2");
        }
      }
    
      public void testOnlyElementMany() {
        try {
          Stream.of(1, 2, 3, 4, 5, 6).collect(MoreCollectors.onlyElement());
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/DoubleMathTest.java

        try {
          DoubleMath.mean(Double.NaN);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
        try {
          DoubleMath.mean(Double.POSITIVE_INFINITY);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // DoubleMath.mean
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

        try {
          HostAndPort.fromParts("gmail.com:80", 81);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostAndPort.fromParts("gmail.com", -1);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testFromHost() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LongMathTest.java

            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          try {
            LongMath.floorPowerOfTwo(x);
            fail("Expected IllegalArgumentException");
          } catch (IllegalArgumentException expected) {
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        try {
          DoubleMath.mean(Double.NaN);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
        try {
          DoubleMath.mean(Double.POSITIVE_INFINITY);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // DoubleMath.mean
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_infiniteX1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4));
      }
    
      public void testMapping_infiniteY1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY));
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/LinearTransformationTest.java

      }
    
      public void testMapping_infiniteX1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4));
      }
    
      public void testMapping_infiniteY1() {
        assertThrows(
            IllegalArgumentException.class,
            () -> LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  10. 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));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.7K bytes
    - Viewed (0)
Back to top