Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for testSetValue (0.06 seconds)

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

        initMapWithNullValue();
        assertTrue(getMap().entrySet().contains(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;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java

        initMapWithNullValue();
        assertTrue(getMap().entrySet().contains(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;
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 03:23:31 GMT 2025
    - 7.5K bytes
    - Click Count (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, MILLISECONDS));
      }
    
      public void testSetValue() throws Exception {
        assertTrue(future.set("value"));
        tester.testCompletedFuture("value");
      }
    
      public void testSetFailure() throws Exception {
        assertTrue(future.setException(new Exception("failure")));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (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, MILLISECONDS));
      }
    
      public void testSetValue() throws Exception {
        assertTrue(future.set("value"));
        tester.testCompletedFuture("value");
      }
    
      public void testSetFailure() throws Exception {
        assertTrue(future.setException(new Exception("failure")));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

          String fieldName = property.name();
          String expected = Ascii.toLowerCase(fieldName).replaceAll("_", ".");
          assertThat(property.key()).isEqualTo(expected);
        }
      }
    
      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertThat(property.value()).isEqualTo(System.getProperty(property.key()));
        }
      }
    
      public void testToString() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/base/StandardSystemPropertyTest.java

          String fieldName = property.name();
          String expected = Ascii.toLowerCase(fieldName).replaceAll("_", ".");
          assertThat(property.key()).isEqualTo(expected);
        }
      }
    
      public void testGetValue() {
        for (StandardSystemProperty property : StandardSystemProperty.values()) {
          assertThat(property.value()).isEqualTo(System.getProperty(property.key()));
        }
      }
    
      public void testToString() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 2.6K bytes
    - Click Count (0)
Back to Top