Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for testSetValue (0.23 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. 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)
  4. 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)
  5. 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