Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for assertThrows (0.12 sec)

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

        assertEquals(-1, iterator.previousIndex());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(NoSuchElementException.class, () -> iterator.previous());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
        assertThrows(UnsupportedOperationException.class, () -> iterator.set("a"));
        assertThrows(UnsupportedOperationException.class, () -> iterator.add("a"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(-1, iterator.previousIndex());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(NoSuchElementException.class, () -> iterator.previous());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
        assertThrows(UnsupportedOperationException.class, () -> iterator.set("a"));
        assertThrows(UnsupportedOperationException.class, () -> iterator.add("a"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 54.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(0, stats.hitCount());
    
        assertThrows(InvalidCacheLoadException.class, () -> cache.get(new Object()));
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(1, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
        assertThrows(InvalidCacheLoadException.class, () -> cache.getUnchecked(new Object()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThrows(IllegalArgumentException.class, () -> type.getSubtype(Iterable.class));
      }
    
      @SuppressWarnings("TestExceptionChecker") // see comment below
      public <T extends Iterable<String>> void testGetSubtype_fromTypeVariable() {
        /*
         * We'd use assertThrows here, but that causes capture() to return null under Java 8, presumably
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertThrows(IllegalArgumentException.class, () -> type.getSubtype(Iterable.class));
      }
    
      @SuppressWarnings("TestExceptionChecker") // see comment below
      public <T extends Iterable<String>> void testGetSubtype_fromTypeVariable() {
        /*
         * We'd use assertThrows here, but that causes capture() to return null under Java 8, presumably
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
Back to top