Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 456 for assertThrows (0.07 sec)

  1. 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,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. android/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));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        for (long x : NEGATIVE_LONG_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> LongMath.ceilingPowerOfTwo(x));
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> LongMath.floorPowerOfTwo(x));
        }
      }
    
      public void testCeilingPowerOfTwoZero() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/features/FeatureUtilTest.java

    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.annotation.RetentionPolicy.RUNTIME;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.testing.features.FeatureUtilTest.ExampleFeature.NotTesterAnnotation;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java

      public final void testClear() {
        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(UnsupportedOperationException.class, () -> testInstance.clear());
        }
      }
    
      public final void testPut() {
        for (Table<Character, Integer, String> testInstance : getTestInstances()) {
          assertThrows(UnsupportedOperationException.class, () -> testInstance.put('a', 1, "blah"));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

        assertThat(
          assertThrows<IllegalStateException> {
            checkDuration("timeout", -1, TimeUnit.MILLISECONDS)
          },
        ).hasMessage("timeout < 0")
        assertThat(
          assertThrows<IllegalArgumentException> {
            checkDuration("timeout", 1, TimeUnit.NANOSECONDS)
          },
        ).hasMessage("timeout too small")
        assertThat(
          assertThrows<IllegalArgumentException> {
            checkDuration(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertThrows(IllegalArgumentException.class, () -> range.gap(Range.closed(2, 3)));
      }
    
      public void testGap_invalidRangesWithInfinity() {
        assertThrows(IllegalArgumentException.class, () -> Range.atLeast(1).gap(Range.atLeast(2)));
    
        assertThrows(IllegalArgumentException.class, () -> Range.atLeast(2).gap(Range.atLeast(1)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

            assertThrows(IllegalStateException.class, n1AdjacentNodes::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Predecessors::size));
        assertNodeRemovedFromGraphErrorMessage(
            assertThrows(IllegalStateException.class, n1Successors::size));
        assertNodeRemovedFromGraphErrorMessage(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          Set<Object> keys = cache.asMap().keySet();
          assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null));
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_addNotSupported() {
        for (LoadingCache<Object, Object> cache : caches()) {
          assertThrows(UnsupportedOperationException.class, () -> cache.asMap().keySet().add(1));
    
          assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          Set<Object> keys = cache.asMap().keySet();
          assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null));
          checkEmpty(cache);
        }
      }
    
      public void testKeySet_addNotSupported() {
        for (LoadingCache<Object, Object> cache : caches()) {
          assertThrows(UnsupportedOperationException.class, () -> cache.asMap().keySet().add(1));
    
          assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top