Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testSetValue (0.24 sec)

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

        assertTrue(getMap().entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null)));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        assertTrue(getMap().entrySet().contains(Helpers.mapEntry(getKeyForNullValue(), null)));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testSetValue() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
            break;
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        tester.setUp();
      }
    
      public void testDefaultState() throws Exception {
        assertThrows(TimeoutException.class, () -> future.get(5, TimeUnit.MILLISECONDS));
      }
    
      public void testSetValue() throws Exception {
        assertTrue(future.set("value"));
        tester.testCompletedFuture("value");
      }
    
      public void testSetFailure() throws Exception {
        assertTrue(future.setException(new Exception("failure")));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        tester.setUp();
      }
    
      public void testDefaultState() throws Exception {
        assertThrows(TimeoutException.class, () -> future.get(5, TimeUnit.MILLISECONDS));
      }
    
      public void testSetValue() throws Exception {
        assertTrue(future.set("value"));
        tester.testCompletedFuture("value");
      }
    
      public void testSetFailure() throws Exception {
        assertTrue(future.setException(new Exception("failure")));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.3K bytes
    - Viewed (0)
Back to top