Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 4,140 for action1 (0.29 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/DefaultCollectionEventRegisterSpec.groovy

        }
    
        def "nothing subscribed when no actions registered"() {
            expect:
            !r.isSubscribed(null)
            !r.isSubscribed(CharSequence)
            !r.isSubscribed(String)
        }
    
        def "actions are invoked in order registered"() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
    
            given:
            r.registerEagerAddAction(String, action1)
            r.registerEagerAddAction(String, action2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 16 06:16:46 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/resolver/ResolverCoordinatorTest.kt

                    "plugins" to sequenceOf("")
                )
    
            val action1 = resolverActionFor(environment, null)
            org.gradle.kotlin.dsl.fixtures.withInstanceOf<ResolverAction.RequestNew>(action1) {
                val action2 = resolverActionFor(environment, scriptDependencies())
                assertInstanceOf<ResolverAction.ReturnPrevious>(action2)
            }
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultTaskTest.groovy

            1 == defaultTask.actions.size()
    
            defaultTask.is(defaultTask.doFirst(action2))
            2 == defaultTask.actions.size()
    
            action2.is(defaultTask.actions[0].action)
            action1.is(defaultTask.actions[1].action)
        }
    
        def "doLast() adds action to the end of actions list"() {
            given:
            Action<Task> action1 = Actions.doNothing()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 24 11:56:02 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/plugins/DefaultPluginManagerTest.groovy

            manager.withPlugin("bar", action2)
    
            then:
            2 * action1.execute(_) >> { AppliedPlugin p ->
                assert p.id == "foo"
            }
            2 * action2.execute(_) >> { AppliedPlugin p ->
                assert p.id == "bar"
            }
            0 * action1._
            0 * action2._
        }
    
        def "action is notified for plugin with org.gradle id"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

            def binary2 = Stub(SwiftBinary)
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            def finalizeAction = Mock(Action)
    
            spec.isSatisfiedBy(binary2) >> true
    
            given:
            def p = container.get(spec)
            p.whenFinalized(finalizeAction)
            p.configure(action1)
            container.configureEach(action2)
            container.add(binary1)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccessTest.groovy

                    def release1 = cacheAccess.acquireFileLock()
                    thread.blockUntil.action2
                    release1.run()
                    instant.action1
                }
                start {
                    def release2 = cacheAccess.acquireFileLock()
                    instant.action2
                    thread.blockUntil.action1
                    release2.run()
                }
            }
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:51 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/DefaultCommandLineActionFactoryTest.groovy

            outputs.stdOut.contains(expectedText)
            outputs.stdOut.contains("action1")
            !action1Intermediary || outputs.stdOut.contains("action2")
    
            and:
            1 * actionFactory1.createAction(!null, !null) >> {
                def action1 = { println "action1" }
                action1Intermediary ? action1 as ContinuingAction<ExecutionListener> : action1 as Action<ExecutionListener>
    
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            given:
            def action1 = {
                instant.action1Start
                thread.block()
                instant.action1End
            }
            def action2 = {
                instant.action2Start
            }
    
            when:
            start {
                synchronizer.runNow(action1)
            }
            async {
                thread.blockUntil.action1Start
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

            client?.stop()
        }
    
        def "manages contention for multiple locks"() {
            def action1 = new AtomicBoolean()
            def action2 = new AtomicBoolean()
    
            when:
            int port = handler.reservePort()
            handler.start(10, { action1.set(true) })
            handler.start(11, { action2.set(true) })
    
            client.maybePingOwner(port, 10, "lock 1", 50000, null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r22/BuildActionCrossVersionSpec.groovy

            def cl1 = new URLClassLoader([implJar.toURI().toURL()] as URL[], getClass().classLoader)
            def action1 = cl1.loadClass("ActionImpl").getConstructor().newInstance()
    
            when:
            File actualJar1 = withConnection { ProjectConnection connection ->
                connection.action(action1).run()
            }
            cl1.close()
            Files.delete(implJar.toPath())
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top