Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 462 for def2 (0.13 sec)

  1. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DefaultDaemonConnectionTest.groovy

            result == null
        }
    
        def "receive blocks until timeout"() {
            when:
            def result = daemonConnection.receive(100, TimeUnit.MILLISECONDS)
    
            then:
            result == null
        }
    
        def "receive rethrows failure to receive from connection"() {
            def waiting = new CountDownLatch(1)
            def failure = new RuntimeException()
            def result = null
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            property.get() == toImmutable(["2"])
        }
    
        def "can set string property from provider that returns collection containing GString"() {
            def provider = Stub(Provider)
            def value = ["${'321'.substring(2)}"]
            provider.get() >>> value
    
            expect:
            property.set(value)
            assertValueIs(["1"])
        }
    
        def "queries initial value for every call to get()"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/test/groovy/org/gradle/internal/daemon/client/serialization/ClasspathInfererTest.groovy

        def factory = new ClasspathInferer()
    
        def "determines action and tooling API classpath when loaded via a URLClassLoader"() {
            def cl = urlClassLoader(toolingApiClassPath + isolatedClasses(CustomAction, CustomModel))
            def actionClass = cl.loadClass(CustomAction.name)
    
            expect:
            def classpath = classpathFor(actionClass)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/JavaCompilerArgumentsBuilderTest.groovy

        def defaultOptionsWithoutClasspath = ["-g", "-sourcepath", "", "-proc:none", USE_UNSHARED_COMPILER_TABLE_OPTION]
        def defaultOptions = ["-g", "-sourcepath", "", "-proc:none", USE_UNSHARED_COMPILER_TABLE_OPTION, "-classpath", ""]
    
        def spec = new DefaultJavaCompileSpec()
        def builder = new JavaCompilerArgumentsBuilder(spec)
    
        def setup() {
            spec.tempDir = tempDir.file("tmp")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:36 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryCacheTest.groovy

            cleanup:
            cache.close()
        }
    
        def "will rebuild cache if cache.properties is missing and properties are not empty"() {
            given:
            def dir = createCacheDir()
            def initialized = false
            def init = { initialized = true } as Consumer
            def properties = [foo: 'bar']
            def cache = new DefaultPersistentDirectoryCache(dir, "test", properties,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/CachingModuleComponentRepositoryTest.groovy

        def moduleArtifactsCache = Mock(AbstractArtifactsCache)
        def artifactAtRepositoryCache = Mock(ModuleArtifactCache)
        def cachePolicy = Stub(CachePolicy)
        def metadataProcessor = Stub(ComponentMetadataProcessor)
        def listener = Stub(ChangingValueDependencyResolutionListener)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheMavenPublishIntegrationTest.groovy

        def "cannot use identity-incompatible repository name credentials provider with configuration cache"() {
            def username = "someuser"
            def password = "somepassword"
            def repositoryName = "repo-with-invalid-identity-name"
            def projectConfig = configureProject(username, password, repositoryName, true)
            def configurationCache = newConfigurationCacheFixture()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/BuildActionsFactoryTest.groovy

            return factory.createAction(parser, cl)
        }
    
        void isDaemon(def action) {
            def runnable = unwrapAction(action)
            def executor = unwrapExecutor(runnable)
            assert executor instanceof DaemonClient
        }
    
        void isInProcess(def action) {
            def runnable = unwrapAction(action)
            def executor = unwrapExecutor(runnable)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:33:15 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. platforms/extensibility/unit-test-fixtures/src/test/groovy/org/gradle/testfixtures/ProjectBuilderTest.groovy

            project.apply plugin: CustomPlugin
    
            then:
            project.tasks.hello instanceof DefaultTask
        }
    
        def canApplyACustomPluginById() {
            when:
            def project = buildProject()
            project.apply plugin: 'custom-plugin'
    
            then:
            project.tasks.hello instanceof DefaultTask
        }
    
        def canApplyACustomPluginByType() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 21:54:27 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/jvm/JvmTest.groovy

            Matchers.strictlyEquals(jvm, jvm2)
        }
    
        def "Returns current JVM when located using Java home dir"() {
            expect:
            def current = Jvm.current()
            def jvm = Jvm.forHome(current.javaHome)
    
            jvm.is(current)
        }
    
        def "Returns current JVM when located using java.home dir"() {
            expect:
            def current = Jvm.current()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top