Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for smith (0.03 sec)

  1. platforms/documentation/docs/src/snippets/scala/mixedJavaAndScala/groovy/src/test/scala/org/gradle/sample/PersonSpec.scala

    import org.junit.Test
    
    class PersonSpec {
      @Test
      def createPersonShouldSucceedForScala(): Unit = {
        def person: Named = new Person("bob smith")
      }
    
      @Test
      def createPersonShouldSucceedForJava(): Unit = {
        def person: Named = new JavaPerson("alice smith")
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 301 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/modelRules/basicRuleSourcePlugin/tests/basicRuleSourcePlugin-all.out

    > Task :hello
    Hello John Smith!
    
    BUILD SUCCESSFUL in 0s
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 87 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/scala/zinc/kotlin/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleSamplesIntegrationTest.groovy

            then:
            succeeds "hello"
            output.contains("Hello John Smith!")
    
            when:
            inDirectory(sample.dir.file('groovy'))
    
            then:
            succeeds "listPeople"
            output.contains("configuring Person 'people.john'")
            output.contains("configuring Person 'people.barry'")
            output.contains("Hello John Smith!")
            output.contains("Hello Barry Barry!")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/modelRules/initializationRuleRunsBeforeConfigurationRules/tests/modelDslInitializationRuleRunsBeforeConfigurationRule.out

    creating person
    configuring person
    last name is Smith, should be Smythe
    
    > Task :showPerson
    Hello John Smythe!
    
    BUILD SUCCESSFUL in 0s
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 165 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/modelRules/configureElementsOfMap/groovy/build.gradle

        }
    }
    
    apply plugin: PersonRules
    
    // tag::create-and-configure[]
    model {
        people {
            john(Person) {
                println "creating $it"
                firstName = "John"
                lastName = "Smith"
            }
            all {
                println "configuring $it"
            }
            barry(Person) {
                println "creating $it"
                firstName = "Barry"
                lastName = "Barry"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 931 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/modelRules/configureAsRequired/groovy/build.gradle

        void setFirstName(String n)
    
        String getLastName()
        void setLastName(String n)
    }
    
    // tag::configure-rule[]
    model {
        person {
            println "configuring person"
            lastName = "Smith"
        }
    }
    // end::configure-rule[]
    model {
        person(Person) {
            firstName = "John"
        }
        tasks {
            showPerson(Task) {
                def p = $.person
                doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 648 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/modelRules/modelDsl/groovy/build.gradle

    // tag::managed-type-nested-config-rule[]
    model {
    // end::create-rule[]
    // end::rule-inputs[]
    // end::create-rule-no-config[]
    // end::managed-type-nested-config-rule[]
        person {
            lastName = "Smith"
        }
    // end::configure-rule[]
    // tag::managed-type-nested-config-rule[]
        person {
            address {
                city = "Melbourne"
            }
        }
    // end::managed-type-nested-config-rule[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/scala/force/kotlin/src/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/scala/customizedLayout/groovy/test/scala/org/gradle/sample/PersonSpec.scala

    package org.gradle.sample
    
    import org.junit.Test
    
    class PersonSpec {
      @Test
      def personCreationShouldSuccessfullyCreatePerson(): Unit = {
        def person: Named = new Person(List("bob", "smith"))
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 203 bytes
    - Viewed (0)
Back to top