Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 707 for Expected (0.15 sec)

  1. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        ExecutionError expected = assertThrows(ExecutionError.class, () -> cache.get(new Object()));
        assertThat(expected).hasCauseThat().isSameInstanceAs(e);
        stats = cache.stats();
        assertEquals(1, stats.missCount());
        assertEquals(0, stats.loadSuccessCount());
        assertEquals(1, stats.loadExceptionCount());
        assertEquals(0, stats.hitCount());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 86.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/CollectorTester.java

          }
          assertEquivalent(expectedResult, collector.finisher().apply(finalAccum));
        }
      }
    
      private void assertEquivalent(R expected, R actual) {
        assertTrue(
            "Expected " + expected + " got " + actual + " modulo equivalence " + equivalence,
            equivalence.test(expected, actual));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        assertSize(3);
        try {
          table.put(null, 2, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        try {
          table.put("cat", null, cellValue('d'));
          fail();
        } catch (NullPointerException expected) {
        }
        if (supportsNullValues()) {
          assertNull(table.put("cat", 2, null));
          assertTrue(table.contains("cat", 2));
        } else {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

            rangeMap.put(range2, 2);
    
            Range<Integer> expected;
            if (range1.isEmpty()) {
              if (range2.isEmpty()) {
                expected = null;
              } else {
                expected = range2;
              }
            } else {
              if (range2.isEmpty()) {
                expected = range1;
              } else {
                expected = range1.span(range2);
              }
            }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

        } catch (NullPointerException expected) {
        }
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAllAtIndex_negative() {
        try {
          getList().addAll(-1, MinimalCollection.of(e3()));
          fail("addAll(-1, e) should throw");
        } catch (IndexOutOfBoundsException expected) {
        }
        expectUnchanged();
        expectMissing(e3());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  6. guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            try {
              entry.setValue(v1());
              fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException expected) {
            }
          }
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES)
      @CollectionSize.Require(absent = ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultimapPutIterableTester.java

          multimap().putAll(k3(), Lists.newArrayList(v3(), null));
          fail();
        } catch (NullPointerException expected) {
        }
    
        Collection<V> values = multimap().get(k3());
        if (values.size() == 0) {
          expectUnchanged();
          // Be extra thorough in case internal state was corrupted by the expected null.
          assertEquals(Lists.newArrayList(), Lists.newArrayList(values));
          assertEquals(size, multimap().size());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 7.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

        try {
          getMultiset().remove(e0(), -1);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemoveUnsupported() {
        try {
          getMultiset().remove(e0(), 2);
          fail("Expected UnsupportedOperationException");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      public void testOrNull_absent() {
        assertNull(Optional.absent().orNull());
      }
    
      public void testAsSet_present() {
        Set<String> expected = Collections.singleton("a");
        assertEquals(expected, Optional.of("a").asSet());
      }
    
      public void testAsSet_absent() {
        assertTrue("Returned set should be empty", Optional.absent().asSet().isEmpty());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
       * returns the expected data.
       *
       * @throws Throwable if the listener isn't called or if it resulted in a throwable or if the
       *     result doesn't match the expected value.
       */
      public void assertSuccess(Object expectedData) throws Throwable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top