Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testAsList (0.07 sec)

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

      }
    
      public void testMultisetWrites() {
        Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a");
        UnmodifiableCollectionTests.assertMultisetIsUnmodifiable(multiset, "test");
      }
    
      public void testAsList() {
        ImmutableMultiset<String> multiset = ImmutableMultiset.of("a", "a", "b", "b", "b");
        ImmutableList<String> list = multiset.asList();
        assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list);
    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/ImmutableSortedMultisetTest.java

      public void testMultisetWrites() {
        Multiset<String> multiset = ImmutableSortedMultiset.of("a", "b", "a");
        UnmodifiableCollectionTests.assertMultisetIsUnmodifiable(multiset, "test");
      }
    
      public void testAsList() {
        ImmutableSortedMultiset<String> multiset = ImmutableSortedMultiset.of("a", "a", "b", "b", "b");
        ImmutableList<String> list = multiset.asList();
        assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

          assertThrows(
              NullPointerException.class, () -> builder.addAll((Iterable<String>) iterableWithNulls));
        }
      }
    
      public void testAsList() {
        ImmutableList<String> list = ImmutableList.of("a", "b");
        assertSame(list, list.asList());
      }
    
      @GwtIncompatible("builder internals")
      public void testReusedBuilder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testMultisetWrites() {
        Multiset<String> multiset = ImmutableMultiset.of("a", "b", "a");
        UnmodifiableCollectionTests.assertMultisetIsUnmodifiable(multiset, "test");
      }
    
      public void testAsList() {
        ImmutableMultiset<String> multiset = ImmutableMultiset.of("a", "a", "b", "b", "b");
        ImmutableList<String> list = multiset.asList();
        assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

          assertThrows(
              NullPointerException.class, () -> builder.addAll((Iterable<String>) iterableWithNulls));
        }
      }
    
      public void testAsList() {
        ImmutableList<String> list = ImmutableList.of("a", "b");
        assertSame(list, list.asList());
      }
    
      @SuppressWarnings("ModifiedButNotUsed")
      @GwtIncompatible // actually allocates nCopies
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      @SuppressWarnings({"deprecation", "static-access", "DoNotCall"})
      public void testBuilderMethod() {
        assertThrows(UnsupportedOperationException.class, () -> ImmutableSortedSet.builder());
      }
    
      public void testAsList() {
        ImmutableSet<String> set = ImmutableSortedSet.of("a", "e", "i", "o", "u");
        ImmutableList<String> list = set.asList();
        assertEquals(ImmutableList.of("a", "e", "i", "o", "u"), list);
    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