Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testCopyOf_collectionContainingNull (0.61 sec)

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

        Multiset<String> multiset = ImmutableMultiset.copyOf(c);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          ImmutableMultiset.copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 21K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

        List<String> mutableList = asList("a", "b");
        list = ImmutableList.copyOf(mutableList);
        mutableList.set(0, "c");
        assertEquals(asList("a", "b"), list);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          ImmutableList.copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        Multiset<String> multiset = ImmutableMultiset.copyOf(c);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          ImmutableMultiset.copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<String> c = MinimalCollection.of("a", null, "b");
        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_multiset_empty() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        List<String> mutableList = asList("a", "b");
        list = ImmutableList.copyOf(mutableList);
        mutableList.set(0, "c");
        assertEquals(asList("a", "b"), list);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          ImmutableList.copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedMultisetTest.java

        Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c);
        assertEquals(HashMultiset.create(asList("a", "b", "a")), multiset);
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<String> c = MinimalCollection.of("a", null, "b");
        assertThrows(NullPointerException.class, () -> ImmutableSortedMultiset.copyOf(c));
      }
    
      public void testCopyOf_multiset_empty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> set = copyOf(c);
        assertEquals(2, set.size());
        assertTrue(set.contains("a"));
        assertTrue(set.contains("b"));
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> set = copyOf(c);
        assertEquals(2, set.size());
        assertTrue(set.contains("a"));
        assertTrue(set.contains("b"));
      }
    
      public void testCopyOf_collectionContainingNull() {
        Collection<@Nullable String> c = MinimalCollection.of("a", null, "b");
        try {
          copyOf((Collection<String>) c);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
Back to top