Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for DoNotCall (0.11 sec)

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

        return suite;
      }
    
      @SuppressWarnings("DoNotCall")
      public void testEmptyIterator() {
        Iterator<String> iterator = emptyIterator();
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
      }
    
      @SuppressWarnings("DoNotCall")
      public void testEmptyListIterator() {
    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/ImmutableBiMapTest.java

        assertThrows(
            IllegalArgumentException.class,
            () -> Stream.of(mapEntry("one", 1), mapEntry("one", 11)).collect(collector));
      }
    
      // BiMap-specific tests
    
      @SuppressWarnings("DoNotCall")
      public void testForcePut() {
        BiMap<String, Integer> bimap = ImmutableBiMap.copyOf(ImmutableMap.of("one", 1, "two", 2));
        assertThrows(UnsupportedOperationException.class, () -> bimap.forcePut("three", 3));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

                CollectionFeature.ALLOWS_NULL_QUERIES)
            .createTestSuite();
      }
    
      private enum SomeEnum {
        A,
        B,
        C,
        D
      }
    
      @SuppressWarnings("DoNotCall")
      public void testImmutableEnumSet() {
        Set<SomeEnum> units = Sets.immutableEnumSet(SomeEnum.D, SomeEnum.B);
    
        assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        ImmutableSortedSet<LegacyComparable> set = builder.build();
        assertTrue(elementsEqual(LegacyComparable.VALUES_BACKWARD, set));
      }
    
      @SuppressWarnings({"deprecation", "static-access", "DoNotCall"})
      public void testBuilderMethod() {
        assertThrows(UnsupportedOperationException.class, () -> ImmutableSortedSet.builder());
      }
    
      public void testAsList() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top