Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 533 for emerson (0.16 sec)

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

                    String name
    
                    Person getRiker() {
                       factory.newInstance(Person, 'Riker')
                    }
    
                    void checkRiker(Action<? super Person> check) {
                        check.execute(getRiker())
                    }
                }
    
                class Person {
    
                    @javax.inject.Inject
                    Person(String name) { this.name = name}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 13 21:29:11 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  2. platforms/jvm/language-groovy/src/integTest/groovy/org/gradle/groovy/GroovyTransformationIntegrationTest.groovy

                class Person { }
            """
    
            expect:
            succeeds 'compileGroovy'
        }
    
        def "Dependencies defined @Grab annotation are not present on the classpath"() {
            setup:
            file("src/main/groovy/Person.groovy") << """
                @Grab(group='commons-lang', module='commons-lang', version='2.4')
                import org.apache.commons.lang.WordUtils
                class Person {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ZincScalaCompilerMultiVersionIntegrationTest.groovy

            scalaClassFile("compile/test").assertContainsDescendants(
                "Person.class",
                "Person2.class"
            )
        }
    
        def withScalaSources() {
            file("src/main/scala/compile/test/Person.scala") <<
                """
    package compile.test
    
    import scala.collection.JavaConverters._
    
    class Person(val name: String, val age: Int) {
        def hello() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. platforms/documentation/docs/src/snippets/scala/customizedLayout/kotlin/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)
  7. test/fixedbugs/issue13779.go

    // license that can be found in the LICENSE file.
    
    // Issue 13779: provide better error message when directly assigning to struct field in map
    
    package main
    
    func main() {
    	type person struct{ age, weight, height int }
    	students := map[string]person{"sally": person{12, 50, 32}}
    	students["sally"].age = 3 // ERROR "cannot assign to struct field .* in map"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 24 15:07:16 UTC 2016
    - 483 bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/testFixtures/groovy/org/gradle/language/scala/fixtures/BadScalaLibrary.groovy

                new JvmSourceFile("compile/test", "Person.scala", '''
    package compile.test;
    
    class Person(name: String, age: Integer) {
        def toString(): String = name + ", " + age;
    }'''),
                new JvmSourceFile("compile/test", "Person2.scala", '''
    package compile.test;
    
    class Person2 {
        def test;
    }
    ''')
        ]
    
        List<String> compilerErrors = [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. 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)
  10. platforms/documentation/docs/src/snippets/groovy/customizedLayout/groovy/test/groovy/org/gradle/PersonTest.groovy

    package org.gradle
    
    import org.junit.Test
    import static org.junit.Assert.*
    
    class PersonTest {
        @Test public void canConstructAPerson() {
            Person p = new Person(name: 'name')
            assertEquals('name', p.name)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 230 bytes
    - Viewed (0)
Back to top