Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MethodInvocationExpression (1.19 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java

                JUNIT(new MethodInvocationExpression("useJUnit"), "JUnit4"),
                JUNIT_PLATFORM(new MethodInvocationExpression("useJUnitJupiter"), "JUnit Jupiter"),
                SPOCK(new MethodInvocationExpression("useSpock"), "Spock"),
                KOTLIN_TEST(new MethodInvocationExpression("useKotlinTest"), "Kotlin Test"),
                TEST_NG(new MethodInvocationExpression("useTestNG"), "TestNG");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 90K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderGroovyTest.groovy

                .propertyAssignment(null, "cathedral", 42)
                .propertyAssignment("Use a map", "cathedral", [a: 12, b: "value"])
                .propertyAssignment("Use a method call", "cathedral", builder.methodInvocationExpression("thing", 123, false))
    
            when:
            builder.create(target).generate()
    
            then:
            assertOutputFile("""$COMMON_START
     */
    
    // Set a property
    foo.bar = 'bazar'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/BuildScriptBuilderKotlinTest.groovy

                .propertyAssignment(null, "cathedral", 42)
                .propertyAssignment("Use a map", "cathedral", [a: 12, b: "value"])
                .propertyAssignment("Use a method call", "cathedral", builder.methodInvocationExpression("thing", 123, false))
    
            when:
            builder.create(target).generate()
    
            then:
            assertOutputFile("""/*
     * This file was generated by the Gradle 'init' task.
     */
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 14:16:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/main/java/org/gradleinternal/buildinit/plugins/internal/maven/Maven2Gradle.java

            }
            for (Map.Entry<String, String> entry : artifactIdToDir.entrySet()) {
                BuildScriptBuilder.Expression dirExpression = scriptBuilder.methodInvocationExpression("file", entry.getValue());
                scriptBuilder.propertyAssignment(null, "project(\"" + entry.getKey() + "\").projectDir", dirExpression);
            }
            scriptBuilder.create(workingDir).generate();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 15:23:34 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top