Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGet_wrongType (0.11 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java

      public void testGet_nullContained() {
        initMapWithNullKey();
        assertEquals("get(null) should return the associated value", getValueForNullKey(), get(null));
      }
    
      public void testGet_wrongType() {
        try {
          assertNull("get(wrongType) should return null or throw", getMap().get(WrongType.VALUE));
        } catch (ClassCastException tolerated) {
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java

        initMapWithNullValue();
        assertNull(
            "getOrDefault(mappedToNull, default) should return null",
            getMap().getOrDefault(getKeyForNullValue(), v3()));
      }
    
      public void testGet_wrongType() {
        try {
          assertEquals(
              "getOrDefault(wrongType, default) should return default or throw",
              v3(),
              getMap().getOrDefault(WrongType.VALUE, v3()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top