Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 199 for isSatisfiedBy (0.17 sec)

  1. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/ClassMethodNameStackTraceSpecTest.groovy

            expect:
            spec.isSatisfiedBy(new StackTraceElement("ClassName", "methodName", "SomeFile.java", 42))
            spec.isSatisfiedBy(new StackTraceElement("ClassName", "methodName", "OtherFile.java", 21))
            spec.isSatisfiedBy(new StackTraceElement('ClassName$1', "methodName", "ClassName.java", 21))
            spec.isSatisfiedBy(new StackTraceElement('ClassName$1$22', "methodName", "ClassName.kt", 21))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpecTest.groovy

            !spec.isSatisfiedBy(GradleVersion.version("1.0"))
            !spec.isSatisfiedBy(GradleVersion.version("1.0-milestone-9"))
            !spec.isSatisfiedBy(GradleVersion.version("1.0-snapshot-1"))
            !spec.isSatisfiedBy(GradleVersion.version("1.0-rc-1"))
            !spec.isSatisfiedBy(GradleVersion.version("1.0-12341010120000+1000"))
    
            spec.isSatisfiedBy(GradleVersion.version("1.1"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractTaskTest.groovy

            when:
            task.onlyIf(spec)
    
            then:
            !task.getOnlyIf().isSatisfiedBy(task)
        }
    
        def "can specify onlyIf predicate using description and spec"() {
            given:
            final task = getTask()
            final Spec<Task> spec = Mock(Spec.class)
            spec.isSatisfiedBy(task) >> false
    
            expect:
            task.getOnlyIf().isSatisfiedBy(task)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractSpockTaskTest.groovy

            expect:
            task.getOnlyIf().isSatisfiedBy(task)
    
            when:
            task.onlyIf(spec)
    
            then:
            spec.isSatisfiedBy(task) >> false
            assertFalse(task.getOnlyIf().isSatisfiedBy(task))
        }
    
        def onlyIfPredicateIsTrueWhenTaskIsEnabledAndAllPredicatesAreTrue() {
            final MutableBoolean condition1 = new MutableBoolean(true)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 23 14:27:55 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. subprojects/core-api/src/test/groovy/org/gradle/api/tasks/util/internal/PatternSpecFactoryTest.groovy

            def spec = factory.createSpec(source)
            spec.isSatisfiedBy(element("a/b/c.groovy"))
            spec.isSatisfiedBy(element("1/c/d/e.java"))
    
            !spec.isSatisfiedBy(element("c/a/b/d.java"))
            !spec.isSatisfiedBy(element("a/c/d.java"))
            !spec.isSatisfiedBy(element("a/c/d/e.groovy"))
    
            // Default excludes
            !spec.isSatisfiedBy(element("/.git/refs"))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 15 16:06:48 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/TruncatedStackTraceSpecTest.groovy

            truncationPointDetector.isSatisfiedBy(_) >>> [false, false, true, false]
    
            def spec = new TruncatedStackTraceSpec(truncationPointDetector)
            def element = new StackTraceElement("foo", "bar", "baz", 42)
    
            expect:
            !spec.isSatisfiedBy(element)
            !spec.isSatisfiedBy(element)
            spec.isSatisfiedBy(element)
            spec.isSatisfiedBy(element)
            spec.isSatisfiedBy(element)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/dsl/DependencyResultSpecNotationParserSpec.groovy

            def spec = parser.parseNotation(new Spec<DependencyResult>() {
                boolean isSatisfiedBy(DependencyResult element) {
                    return element.requested.module == 'mockito-core'
                }
            })
    
            then:
            spec.isSatisfiedBy(mockito)
            !spec.isSatisfiedBy(other)
        }
    
        def "fails neatly for unknown notations"() {
            when:
            parser.parseNotation(['not supported'])
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/dsl/DependencyResultSpecTest.groovy

            expect:
            new DependencyResultSpec(notation).isSatisfiedBy(newDependency("org.foo", "foo-core", "1.0"))
    
            where:
            notation << ['org', 'org.foo', 'foo-core', '1.0', 'org.foo:foo-core', 'org.foo:foo-core:1.0']
        }
    
        def "knows mismatching dependencies"() {
            expect:
            !new DependencyResultSpec(notation).isSatisfiedBy(newDependency("org.foo", "foo-core", "1.0"))
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 04 04:36:33 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/execution/DefaultTaskSelectorTest.groovy

            1 * resolver.selectWithName("b", projectModel1, false) >> selectionResult
            _ * selectionResult.collectTasks(_) >> { it[0] << excluded }
            0 * _
    
            and:
            !filter.isSatisfiedBy(excluded)
            filter.isSatisfiedBy(notExcluded)
        }
    
        def "qualified exclude filter configures target project and selects matching tasks from all candidates when subprojects not included"() {
            def excluded = Stub(Task)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 05 22:49:56 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/DaemonStopClientTest.groovy

            _ * connection.daemon >> daemon('1')
            _ * connection2.daemon >> daemon('2')
    
            1 * connector.maybeConnect(_) >> { ExplainingSpec spec ->
                assert spec.isSatisfiedBy(d1)
                assert spec.isSatisfiedBy(d2)
                connection
            }
            1 * connection.dispatch({it instanceof Stop})
            1 * connection.receive() >> new Success(null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top