Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCreateEmptyWithClass (0.12 sec)

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

      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        assertThrows(IllegalArgumentException.class, () -> EnumMultiset.create(empty));
      }
    
      public void testCreateEmptyWithClass() {
        Multiset<Color> ms = EnumMultiset.create(ImmutableList.<Color>of(), Color.class);
        ms.add(Color.RED);
      }
    
      public void testCreateEmptyWithoutClassFails() {
        assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top