Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DistinctVarargsChecker (0.13 sec)

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

        assertThrows(NullPointerException.class, () -> ImmutableBiMap.of("one", 1, "two", null));
      }
    
      @SuppressWarnings({"AlwaysThrows", "DistinctVarargsChecker"})
      public void testOfWithDuplicateKey() {
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> ImmutableBiMap.of("one", 1, "one", 1));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/RangeTest.java

        Cut<Integer> e = Range.greaterThan(1).lowerBound;
        Cut<Integer> f = Range.greaterThan(1).upperBound;
    
        testCompareToAndEquals(ImmutableList.of(a, b, c, d, e, f));
      }
    
      @SuppressWarnings("DistinctVarargsChecker")
      public void testContainsAll() {
        Range<Integer> range = Range.closed(3, 5);
        assertTrue(range.containsAll(asList(3, 3, 4, 5)));
        assertFalse(range.containsAll(asList(3, 3, 4, 5, 6)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(0, 3, 5, 6, 7, 8, 9);
        sort(list, c);
        assertThat(list).containsExactly(8, 6, 7, 5, 3, 0, 9).inOrder();
        reserializeAndAssert(c);
      }
    
      @SuppressWarnings("DistinctVarargsChecker") // test of buggy call
      public void testExplicit_withDuplicates() {
        assertThrows(IllegalArgumentException.class, () -> Ordering.explicit(1, 2, 3, 4, 2));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<Integer> list = asList(0, 3, 5, 6, 7, 8, 9);
        sort(list, c);
        assertThat(list).containsExactly(8, 6, 7, 5, 3, 0, 9).inOrder();
        reserializeAndAssert(c);
      }
    
      @SuppressWarnings("DistinctVarargsChecker") // test of buggy call
      public void testExplicit_withDuplicates() {
        assertThrows(IllegalArgumentException.class, () -> Ordering.explicit(1, 2, 3, 4, 2));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top