Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 4,411 for def2 (0.09 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/DefaultImmutableAttributesFactoryTest.groovy

        private static final Attribute<String> BAZ = Attribute.of("baz", String)
    
        def isolatableFactory = SnapshotTestUtil.isolatableFactory()
        def instantiator = TestUtil.objectInstantiator()
    
        def factory = new DefaultImmutableAttributesFactory(isolatableFactory, instantiator)
    
        def "can create empty set"() {
            when:
            def attributes = factory.root
    
            then:
            attributes.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 07 17:59:06 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/hub/MethodInvocationSerializerTest.groovy

        }
    
        def "serializes method invocations for multiple methods"() {
            def method1 = String.class.getMethod("substring", Integer.TYPE, Integer.TYPE)
            def method2 = String.class.getMethod("substring", Integer.TYPE)
            def invocation1 = new MethodInvocation(method1, [1, 2] as Object[])
            def invocation2 = new MethodInvocation(method2, [3] as Object[])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 5K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy

            def otherSuccessful = ExecutionResult.succeeded()
            def failed = ExecutionResult.failed(failure1)
            def otherFailed = ExecutionResult.failed(failure2)
            def allFailed = ExecutionResult.maybeFailed([failure1, failure2])
    
            expect:
            def result = successful.withFailures(otherSuccessful)
            result.value == 12
            result.failures.empty
    
            def result2 = successful.withFailures(failed)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/type/DefaultArtifactTypeRegistryTest.groovy

        }
    
        def "adds only default attributes when multiple artifacts with different types"() {
            def attrs = ImmutableAttributes.EMPTY
            def attrsPlusFormat = concat(attrs, ["custom-default": "123"])
            def artifact1 = Stub(ComponentArtifactMetadata)
            def artifactName1 = Stub(IvyArtifactName)
            def artifact2 = Stub(ComponentArtifactMetadata)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 14:43:17 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/ExclusiveCacheAccessingWorkerTest.groovy

            then:
            def e = thrown(RuntimeException)
            e == failure
    
            cleanup:
            cacheAccessWorker?.stop()
        }
    
        def "read completes after failed update"() {
            given:
            def failure = new RuntimeException()
            start(cacheAccessWorker)
    
            when:
            cacheAccessWorker.enqueue { throw failure }
            def result = cacheAccessWorker.read { 2 }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/DefaultListenerManagerInServiceRegistryTest.groovy

        def listenerManager = new DefaultListenerManager(Scope.BuildTree)
        def services = new DefaultServiceRegistry()
    
        def setup() {
            services.add(listenerManager)
        }
    
        def "automatically creates and registers stateful listener when first event is broadcast"() {
            def created = Mock(Runnable)
            def listener = Mock(TestListener)
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

        def locationAnalyzer = Mock(ProblemLocationAnalyzer)
        def userCodeContext = Mock(UserCodeApplicationContext)
        def factory = new DefaultProblemDiagnosticsFactory(DefaultFailureFactory.withDefaultClassifier(), locationAnalyzer, userCodeContext, 2)
    
        def "uses caller's stack trace to calculate problem location"() {
            given:
            def location = Stub(Location)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy

            cleanup:
            registry?.stop()
        }
    
        def "can run as worker thread"() {
            def registry = workerLeaseService(1)
    
            def action = {
                assert registry.workerThread
                def lease = registry.currentWorkerLease
                def nested = registry.runAsWorkerThread({
                    assert registry.workerThread
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/DefaultComponentMetadataHandlerTest.groovy

                statusScheme == ["integration", "release"]
            }
        }
    
        def "supports rule with typed IvyModuleDescriptor parameter"() {
            def metadata = ivyMetadata()
            def id1 = new NamespaceId('namespace', 'info1')
            def id2 = new NamespaceId('namespace', 'info2')
            def extraAttrs = [:]
            extraAttrs[id1] = "info1 value"
            extraAttrs[id2] = "info2 value"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/external/model/DefaultModuleComponentArtifactIdentifierTest.groovy

            def nameOnly = new DefaultModuleComponentArtifactIdentifier(componentId, "name", "type", null, null)
            def nameOnlyFileName = new ComponentFileArtifactIdentifier(componentId, "name-version")
            nameOnly.displayName == nameOnlyFileName.displayName
        }
    
        //ComponentFileArtifactIdentifier
    
        def "calculates a file name from attributes"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top