Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for doStuff2 (0.19 sec)

  1. platforms/core-runtime/messaging/src/integTest/groovy/org/gradle/internal/remote/UnicastMessagingIntegrationTest.groovy

    
            when:
            server.outgoingService1.doStuff("1")
            server.outgoingService1.doStuff("2")
            server.outgoingService1.doStuff("3")
            server.outgoingService1.doStuff("4")
            thread.blockUntil.received
            server.stop()
            client.stop()
    
            then:
            1 * service.doStuff("1")
            1 * service.doStuff("2")
            1 * service.doStuff("3")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 09:21:43 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptExecutionIntegrationTest.groovy

    println 'error message'
    new BuildSrcClass()
    assert 'doStuff' == name
    assert buildscript.classLoader == getClass().classLoader.parent
    assert buildscript.classLoader == Thread.currentThread().contextClassLoader
    ext.someProp = 'value'
    '''
            testFile('build.gradle') << '''
    task doStuff
    apply {
        to doStuff
        from 'external.gradle'
    }
    assert 'value' == doStuff.someProp
    '''
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Operations.groovy

     *
     * <pre>
     *  when:
     *  // runs the given closure and defines operation 'doStuff'
     *  operation.doStuff {
     *      // do some test action
     *  }
     *
     *  then:
     *  // query
     *  operation.doStuff.end > operation.doStuff.start
     *  instant.doStuff == operation.doStuff.end
     * </pre>
     */
    class Operations {
        private final InstantFactory instantFactory
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/LoggingFileSystemWatchingIntegrationTest.groovy

            daemon.becomesIdle()
    
            when:
            sourceFile.text = "public class MyClass { private void doStuff() {} }"
            waitForChangesToBePickedUp()
            sourceFile.text = "public class MyClass { private void doStuff1() {} }"
            waitForChangesToBePickedUp()
            then:
            // On Windows, it may take some extra time until the event occurs
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  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. subprojects/core/src/integTest/groovy/org/gradle/api/file/TaskFilePropertiesIntegrationTest.groovy

            file('settings.gradle') << 'include "a", "b"'
            file('a/build.gradle') << '''
    configurations { compile }
    dependencies { compile project(path: ':b', configuration: 'archives') }
    
    task doStuff(type: InputTask) {
        src = configurations.compile + fileTree('src/java')
    }
    
    class InputTask extends DefaultTask {
        @InputFiles
        def FileCollection src
    }
    '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/CustomTask.groovy

     */
    
    package org.gradle.testfixtures
    
    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    
    
    class CustomTask extends DefaultTask {
        String property
    
        @TaskAction
        def doStuff() {
            property = 'some value'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 861 bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/SettingsScriptExecutionIntegrationTest.groovy

    try {
        buildscript.classLoader.loadClass('BuildSrcClass')
        assert false: 'should fail'
    } catch (ClassNotFoundException e) {
        // expected
    }
    """
            buildFile << 'task doStuff'
    
            when:
            run('doStuff')
    
            then:
            output.contains('quiet message')
            errorOutput.contains('error message')
        }
    
        private TestFile createBuildSrc() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top