Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for doStuff2 (0.43 sec)

  1. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/dispatch/ProxyDispatchAdapterTest.groovy

        def proxyForwardsToDispatch() {
            when:
            adapter.getSource().doStuff('param')
    
            then:
            1 * dispatch.dispatch(new MethodInvocation(ProxyTest.class.getMethod('doStuff', String.class), ['param'] as Object[]))
        }
    
        def proxyIsEqualWhenItHasTheSameTypeAndDispatch() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            when:
            operation.doStuff {
                operation.doStuff.end
            }
    
            then:
            IllegalStateException e = thrown()
            e.message == "Operation 'doStuff' has not completed yet."
        }
    
        def "cannot query operation duration while it is running"() {
            when:
            operation.doStuff {
                operation.doStuff.duration
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

            then:
            result.method == method
            result.arguments == [1, 2] as Object[]
        }
    
        interface Thing {
            String doStuff(Thing[] things)
        }
    
        def "serializes a method invocation with array type parameters"() {
            def method = Thing.class.getMethod("doStuff", Thing[].class)
            def invocation = new MethodInvocation(method, [[] as Thing[]] as Object[])
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/HttpProxyScriptPluginIntegrationSpec.groovy

            server.expectGet('/external.gradle', script)
    
            script << """
                task doStuff
                assert buildscript.sourceFile == null
                assert "${server.uri}/external.gradle" == buildscript.sourceURI as String
    """
    
            buildFile << """
                apply from: '$server.uri/external.gradle'
                defaultTasks 'doStuff'
    """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

    } finally {
        if (initscript.classLoader instanceof Closeable) {
            initscript.classLoader.close()
        }
    }
    """
    
            and:
            buildFile << 'task doStuff'
    
            when:
            result = executer.usingInitScript(initScript).withTasks('doStuff').run()
    
            then:
            outputContains('quiet message')
            result.assertHasErrorOutput('error message')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/NestedInputIntegrationTest.groovy

                class GeneratorTask extends DefaultTask {
                    @Output${kind}
                    final ${type.name} output = project.objects.${factory}()
    
                    @TaskAction
                    void doStuff() {
                        output${generatorAction}
                    }
                }
    
                task generator(type: GeneratorTask) {
                    output.set(project.layout.buildDirectory.${lookup}('output'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. testing/integ-test/src/integTest/groovy/org/gradle/integtests/BuildAggregationIntegrationTest.groovy

                task build(type: GradleBuild) {
                    dir = 'other'
                    tasks = ['dostuff']
                }
    '''
    
            and:
            file('other/settings.gradle') << "rootProject.name = 'other'"
            file('other/build.gradle') << '''
                assert gradle.parent != null
                task dostuff {
                    doLast {
                        assert gradle.parent != null
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. platforms/jvm/language-groovy/src/testFixtures/resources/org/gradle/groovy/compile/AbstractGroovyCompilerIntegrationSpec/canUseBuiltInAstTransform/src/test/groovy/TestDelegate.groovy

    package org.gradle.groovy.compile.GroovyCompilerIntegrationSpec.canUseBuiltInAstTransform.src.test.groovy
    
    class TestDelegate {
        def doStuff(String value) {
            return "[$value]"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 194 bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/BuildScriptExecutionIntegrationTest.groovy

    try {
        buildscript.classLoader.loadClass('${implClassName}')
        assert false: 'should fail'
    } catch (ClassNotFoundException e) {
        // expected
    }
    
                task doStuff
    """
    
            ExecutionResult result = inTestDirectory().withTasks('doStuff').run()
            result.assertOutputContains('quiet message')
            result.assertHasErrorOutput('error message')
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 21 07:18:32 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

                }
                assert defaultTask.doStuff() == 'method'
                assert javaTask.doStuff() == 'method'
                assert groovyTask.doStuff() == 'method'
                assert configurations.test.doStuff() == 'method'
                configurations.test.dependencies.each {
                    assert it.doStuff() == 'method'
                }
                assert repositories.doStuff() == 'method'
                repositories {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top