Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for doStuff2 (0.16 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. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top