Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 5,773 for Def (0.05 sec)

  1. platforms/ide/tooling-api-builders/src/test/groovy/org/gradle/tooling/internal/provider/runner/ClientBuildEventGeneratorTest.groovy

    class ClientBuildEventGeneratorTest extends Specification {
        def fallback = Mock(BuildOperationListener)
        def consumer = Mock(ProgressEventConsumer)
        def subscriptions = Stub(BuildEventSubscriptions)
        def details = "details"
        def operationId = Stub(OperationIdentifier)
        def parentId = Stub(OperationIdentifier)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

        def listenerManager = new DefaultListenerManager(Scope.Build)
        def fileSystemAccess = Mock(FileSystemAccess)
        def cachesDir = tmpDir.file("caches")
        def cacheScopeMapping = new DefaultCacheScopeMapping(cachesDir, GradleVersion.current())
        def cacheRepository = new DefaultUnscopedCacheBuilderFactory(new TestInMemoryCacheFactory())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/attributes/HierarchicalAttributeContainerTest.groovy

            when:
            def immutable2 = joined.asImmutable()
    
            then:
            immutable2.getAttribute(one) == "new fallback"
            immutable2.getAttribute(two) == "new primary"
        }
    
        def "keySet contains attributes from both fallback and primary"() {
            given:
            def fallback = mutable()
            def primary = mutable()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 27 04:00:15 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapterTest.groovy

            }
        }
    
        def "fetches model for target object with parameter"() {
            def model = new Object()
            def targetElement = new Object()
            def modelElement = Stub(Element)
            def modelView = Stub(GradleBuild)
            def parameterType = ValidParameter
            def parameterInitializer = new Action<ValidParameter>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 19 08:15:25 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy

            assert file.exists() && file.file
    
            expect:
            normalize(file) == file
        }
    
        def "normalizes relative path"() {
            def ancestor = new File(tmpDir.testDirectory, "test")
            def baseDir = new File(ancestor, "base")
            def sibling = new File(ancestor, "sub")
            def child = createFile(new File(baseDir, "a/b/file.txt"))
    
            expect:
            normalize("a/b/file.txt", baseDir) == child
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/MissingLocalArtifactMetadataTest.groovy

        }
    
        def "is equal when all attributes and module version are the same"() {
            def moduleVersion = DefaultModuleVersionIdentifier.newId("group", "module", "version")
            def componentId = DefaultModuleComponentIdentifier.newId(moduleVersion)
    
            def withClassifier = localArtifactIdentifier(componentId, "name", "type", "ext", 'classifier')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultIvyContextManagerTest.groovy

            when:
            def result = manager.withIvy(action)
    
            then:
            result == "result"
    
            and:
            1 * action.transform({it != null}) >> "result"
            0 * action._
        }
    
        def "nested actions are executed against the same Ivy instance"() {
            def action1 = Mock(Action)
            def action2 = Mock(Action)
            def transformer = Mock(Transformer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CredentialsProviderFactoryTest.groovy

    class CredentialsProviderFactoryTest extends Specification {
    
        def providerFactory = Mock(ProviderFactory)
        def factory = new CredentialsProviderFactory(providerFactory)
    
        def "does not allow non-letters and non-digits for identity"() {
            when:
            factory.provide(PasswordCredentials, (String) identity)
    
            then:
            def e = thrown(IllegalArgumentException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy

            def dir = tmpDir.file("dir").createDir()
    
            expect:
            def stat = fs.stat(dir)
            stat.type == FileType.Directory
            stat.lastModified == 0
            stat.length == 0
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "stats symlink"() {
            def file = tmpDir.file("file")
            file.text = "123"
            def link = tmpDir.file("link")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  10. platforms/ide/ide-plugins/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r54/RunEclipseSynchronizationTasksCrossVersionSpec.groovy

            """
            settingsFile << "include 'sub'"
        }
    
        def "can run tasks upon Eclipse synchronization"() {
            setup:
            buildFile << "eclipse { synchronizationTasks 'foo' }"
    
            def projectsLoadedHandler = new IntermediateResultHandlerCollector<Void>()
            def buildFinishedHandler = new IntermediateResultHandlerCollector<EclipseModel>()
            def out = new ByteArrayOutputStream()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top