Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setProp3 (0.11 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

        }
    
        def "plugin can create instance of interface with mutable properties"() {
            buildFile """
                interface Thing {
                    String getProp()
                    void setProp(String value)
                }
    
                def t = objects.newInstance(Thing)
                assert t.prop == null
                t.prop = "value"
                assert t.prop == "value"
    """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/services/internal/DefaultBuildServicesRegistryTest.groovy

            listenerManager.getBroadcaster(BuildListener).buildFinished(Stub(BuildResult))
        }
    
        interface Params extends BuildServiceParameters {
            String getProp()
    
            void setProp(String value)
        }
    
        static abstract class ServiceImpl implements BuildService<Params> {
            static List<ServiceImpl> instances = []
    
            String getProp() {
                return getParameters().prop
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top