Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for doSetReadOnlyProperty (0.21 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensibleDynamicObjectTestHelper.groovy

        }
    
        public static void assertCanGetProperties (ExtensibleDynamicObjectTest.Bean bean) {
            bean.readWriteProperty = 'value'
            assertEquals(bean.readWriteProperty, 'value')
    
            bean.doSetReadOnlyProperty('value')
            assertEquals(bean.readOnlyProperty, 'value')
    
            bean.defineProperty('additional', 'value')
            assertEquals(bean.additional, 'value')
        }
        
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensibleDynamicObjectTest.java

            assertThat(bean.getReadWriteProperty(), equalTo((Object) "new value"));
        }
    
        @Test
        public void canGetReadOnlyClassProperty() {
            Bean bean = new Bean();
            bean.doSetReadOnlyProperty("value");
    
            assertThat(bean.getProperty("readOnlyProperty"), equalTo((Object) "value"));
        }
    
        @Test
        public void cannotSetReadOnlyClassProperty() {
            Bean bean = new Bean();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 33.7K bytes
    - Viewed (0)
Back to top