Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for testSetValue (0.54 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)
  5. src/test/java/org/codelibs/core/beans/impl/PropertyDescImplTest.java

    import org.junit.Test;
    
    /**
     * @author higa
     *
     */
    public class PropertyDescImplTest {
    
        /**
         * @throws Exception
         */
        @Test
        public void testSetValue() throws Exception {
            final MyBean myBean = new MyBean();
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final PropertyDesc propDesc = beanDesc.getPropertyDesc("fff");
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/internal/reflectlite/all_test.go

    		t.Errorf("#%d: have %#q, want %#q", i, s, want)
    	}
    }
    
    func TestTypes(t *testing.T) {
    	for i, tt := range typeTests {
    		testReflectType(t, i, Field(ValueOf(tt.i), 0).Type(), tt.s)
    	}
    }
    
    func TestSetValue(t *testing.T) {
    	for i, tt := range valueTests {
    		v := ValueOf(tt.i).Elem()
    		switch v.Kind() {
    		case abi.Int:
    			v.Set(ValueOf(int(132)))
    		case abi.Int8:
    			v.Set(ValueOf(int8(8)))
    		case abi.Int16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  7. src/internal/syscall/windows/registry/registry_test.go

    				size = 4
    			}
    			testGetValue(t, k, test, size)
    		case registry.BINARY:
    			testGetBinaryValue(t, k, test)
    			_, gottype, err := k.GetStringsValue(test.Name)
    			testErrUnexpectedType(t, test, gottype, err)
    			_, _, err = k.GetBinaryValue(test.Name + "_byte_not_created")
    			testErrNotExist(t, test.Name+"_byte_not_created", err)
    			testGetValue(t, k, test, len(test.Value.([]byte)))
    		case registry.MULTI_SZ:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. src/reflect/all_test.go

    			v.SetString("stringy cheese")
    		case Bool:
    			v.SetBool(true)
    		}
    		s := valueToString(v)
    		if s != tt.s {
    			t.Errorf("#%d: have %#q, want %#q", i, s, tt.s)
    		}
    	}
    }
    
    func TestSetValue(t *testing.T) {
    	for i, tt := range valueTests {
    		v := ValueOf(tt.i).Elem()
    		switch v.Kind() {
    		case Int:
    			v.Set(ValueOf(int(132)))
    		case Int8:
    			v.Set(ValueOf(int8(8)))
    		case Int16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top