Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testCopyOf_iterator_empty (0.36 sec)

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

            HashMultiset.create(Arrays.<@Nullable String>asList("a", null, "b"));
        assertThrows(NullPointerException.class, () -> ImmutableMultiset.copyOf((Multiset<String>) c));
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        Multiset<String> multiset = ImmutableMultiset.copyOf(iterator);
        assertTrue(multiset.isEmpty());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

            HashMultiset.create(Arrays.<@Nullable String>asList("a", null, "b"));
        assertThrows(NullPointerException.class, () -> ImmutableMultiset.copyOf((Multiset<String>) c));
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        Multiset<String> multiset = ImmutableMultiset.copyOf(iterator);
        assertTrue(multiset.isEmpty());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Multiset<String> c = HashMultiset.create(asList("a", null, "b"));
        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(iterator);
        assertTrue(multiset.isEmpty());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Collection<TestEnum> c = EnumSet.of(TestEnum.A, TestEnum.B, TestEnum.D);
        Set<TestEnum> set = copyOf(c);
        assertEquals(3, set.size());
        assertEquals(c, set);
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        Set<String> set = copyOf(iterator);
        assertEquals(Collections.<String>emptySet(), set);
        assertSame(this.<String>of(), set);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((Collection<String>) c));
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        List<String> list = ImmutableList.copyOf(iterator);
        assertEquals(emptyList(), list);
      }
    
      public void testCopyOf_iterator_oneElement() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        assertThrows(NullPointerException.class, () -> ImmutableList.copyOf((Collection<String>) c));
      }
    
      public void testCopyOf_iterator_empty() {
        Iterator<String> iterator = emptyIterator();
        List<String> list = ImmutableList.copyOf(iterator);
        assertEquals(emptyList(), list);
      }
    
      public void testCopyOf_iterator_oneElement() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top