Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,140 for action1 (0.13 sec)

  1. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/Action1.java

     */
    
    package org.gradle.integtests.tooling.r32;
    
    import org.gradle.tooling.BuildAction;
    import org.gradle.tooling.BuildController;
    
    import java.util.Collections;
    import java.util.List;
    
    public class Action1 implements BuildAction<List<String>> {
        @Override
        public List<String> execute(BuildController controller) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/ImmutableActionSetTest.groovy

            def action3 = Mock(Action)
            def action4 = Mock(Action)
            def action5 = Mock(Action)
            def action6 = Mock(Action)
    
            when:
            def set = ImmutableActionSet.of(action1, action2)
            set = set.add(action1)
            set = set.add(action2)
            set = set.add(ImmutableActionSet.of(action2, action1))
            set.execute("value")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/MutableActionSetTest.groovy

            0 * action._
        }
    
        def broadcastsEventsToMultipleActions() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            broadcast.add(action1)
            broadcast.add(action2)
    
            when:
            broadcast.execute('value')
    
            then:
            1 * action1.execute('value')
            1 * action2.execute('value')
            0 * _._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/IntermediateBuildActionRunnerTest.groovy

            then:
            result == ["one", "two", "three"]
    
            1 * buildModelParameters.isParallelToolingApiActions() >> false
            1 * action1.get() >> "one"
            1 * action2.get() >> "two"
            1 * action3.get() >> "three"
            0 * _
        }
    
        def "queues supplied actions to run in parallel"() {
            given:
            def action1 = Mock(Supplier)
            def action2 = Mock(Supplier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 20 17:58:18 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r32/BuildActionCrossVersionSpec.groovy

            copyClassTo(Action2, classesDir2)
            copyClassTo(SharedActionStaticState, classesDir2)
            def cl1 = actionClassLoader(classesDir1)
            def action1 = cl1.loadClass(Action1.name)
            assert action1 != Action1
            def cl2 = actionClassLoader(classesDir2)
            def action2 = cl2.loadClass(Action2.name)
            assert action2 != Action2
    
            expect:
            def l1 = withConnection { c ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/concurrent/src/test/groovy/org/gradle/internal/concurrent/DefaultExecutorFactoryTest.groovy

            executor.execute(action1)
            executor.execute(action2)
            executor.execute(action3)
            thread.blockUntil.started3
    
            then:
            instant.started3 > instant.completed1
            instant.started3 > instant.started2
    
            cleanup:
            executor?.stop()
        }
    
        def stopBlocksUntilAllJobsAreComplete() {
            given:
            def action1 = {
                thread.block()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/configuration/project/DelayedConfigurationActionsTest.groovy

            def action1 = Mock(Action)
            def action2 = Mock(Action)
    
            given:
            container.actions >> [action1, action2]
    
            when:
            action.execute(project)
    
            then:
            1 * action1.execute(project)
            1 * action2.execute(project)
    
            and:
            1 * container.finished()
        }
    
        def "discards actions on failure"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 22:54:35 UTC 2013
    - 1.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyContextManagerTest.groovy

            then:
            1 * action.execute({it != null})
            0 * action._
        }
    
        def "executes action against an Ivy instance and returns the result"() {
            def action = Mock(Transformer)
    
            when:
            def result = manager.withIvy(action)
    
            then:
            result == "result"
    
            and:
            1 * action.transform({it != null}) >> "result"
            0 * action._
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/execution/ExecuteActionsTaskExecuterTest.groovy

        }
    
        def "captures exceptions from both task action and async work"() {
            given:
            task.getTaskActions() >> [action1, action2]
            task.hasTaskActions() >> true
            action1.execute(task) >> {
                throw new RuntimeException("failure from task action")
            }
    
            when:
            executer.execute(task, state, executionContext)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/configuration/project/ConfigureActionsProjectEvaluatorTest.groovy

            1 * action1.execute(project)
            1 * action2.execute(project)
            0 * _._
        }
    
        def "does not continue executing actions when action fails"() {
            def project = Mock(ProjectInternal)
            def failure = new RuntimeException("Configure action failed")
    
            when:
            evaluator.evaluate(project, state)
    
            then:
            1 * action1.execute(project) >> {
                throw failure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 02:54:42 UTC 2013
    - 1.8K bytes
    - Viewed (0)
Back to top