Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 734 for Stub (0.03 sec)

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

    import org.gradle.launcher.daemon.server.stats.DaemonRunningStats
    import spock.lang.Specification
    
    class DaemonHealthStatsTest extends Specification {
    
        def gcInfo = Stub(GarbageCollectionInfo)
        def gcMonitor = Stub(DefaultGarbageCollectionMonitor)
        def runningStats = Stub(DaemonRunningStats)
        def healthStats = new DaemonHealthStats(runningStats, gcInfo, gcMonitor)
    
        def "includes garbage collection data when present"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/client/ReportDaemonStatusClientTest.groovy

            0 * _
        }
    
        def "requests status report from all daemons"() {
            given:
            def daemon1 = Stub(DaemonInfo)
            def daemon2 = Stub(DaemonInfo)
    
            when:
            client.listAll()
    
            then:
            1 * registry.getAll() >> { [daemon1, daemon2] as List<DaemonInfo> }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/IdentityCacheStepTest.groovy

        }
    
        def "returns cached output when exists"() {
            def cachedResult = Try.successful(Mock(Object))
            def returnedOriginMetadata = Stub(OriginMetadata) {
                buildInvocationId >> "12345"
            }
            def identityCacheResult = Stub(ExecutionEngine.IdentityCacheResult) {
                result >> cachedResult
                originMetadata >> Optional.of(returnedOriginMetadata)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 16:13:07 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-profile/src/test/groovy/org/gradle/profile/TaskExecutionTest.groovy

        def "knows task status"() {
            def skipped = Stub(TaskState) {
                getSkipped() >> true
                getSkipMessage() >> "Skipped for a good reason."
            }
            def busy = Stub(TaskState) {
                getSkipped() >> false
                getDidWork() >> true
            }
            def noWork = Stub(TaskState) {
                getSkipped() >> false
                getDidWork() >> false
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 12:58:53 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/test/groovy/org/gradle/tooling/internal/provider/PhasedActionEventConsumerTest.groovy

            0 * phasedActionResultListener.onResult(_)
        }
    
        def "deserialize and correctly map results"() {
            def result1 = 'result1'
            def serializedResult1 = Stub(SerializedPayload)
            def result2 = 'result2'
            def serializedResult2 = Stub(SerializedPayload)
    
            given:
            payloadSerializer.deserialize(serializedResult1) >> result1
            payloadSerializer.deserialize(serializedResult2) >> result2
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/local/model/DefaultProjectComponentSelectorTest.groovy

            def selector = new DefaultProjectComponentSelector(Stub(BuildIdentifier), Path.path(":id:path"), Path.path(":project:path"), "projectName", ImmutableAttributes.EMPTY, [])
            def sameIdPath = new DefaultProjectComponentIdentifier(Stub(BuildIdentifier), Path.path(":id:path"), Path.path(":project:path"), "projectName")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/DefaultBuildLauncherTest.groovy

            Task task1 = task(':task1')
            Task task2 = task(':task2')
            ResultHandlerVersion1<Void> adaptedHandler
            ResultHandler<Void> handler = Mock()
            OutputStream stdout = Stub()
            OutputStream stderr = Stub()
    
            when:
            launcher.standardOutput = stdout
            launcher.standardError = stderr
            launcher.forTasks(task1, task2)
            launcher.run(handler)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/collections/DefaultCollectionEventRegisterSpec.groovy

        def "types subscribed when actions registered"() {
            given:
            r.registerEagerAddAction(String, Stub(Action))
    
            expect:
            r.isSubscribed(null)
            r.isSubscribed(String)
            !r.isSubscribed(CharSequence)
            !r.isSubscribed(StringBuilder)
    
            r.registerEagerAddAction(CharSequence, Stub(Action))
    
            r.isSubscribed(null)
            r.isSubscribed(String)
            r.isSubscribed(CharSequence)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 16 06:16:46 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/repositories/DefaultMavenLocalRepositoryTest.groovy

        final DefaultArtifactIdentifierFileStore artifactIdentifierFileStore = Stub()
        final MetaDataParser<MutableMavenModuleResolveMetadata> pomParser = Stub()
        final GradleModuleMetadataParser metadataParser = Stub()
        final AuthenticationContainer authenticationContainer = Stub()
        final FileResourceRepository fileResourceRepository = Mock()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCacheLockingAccessCoordinatorTest.groovy

        def artifactCacheMetadata = Stub(ArtifactCacheMetadata) {
            getCacheDir() >> cacheDir
            getExternalResourcesStoreDirectory() >> resourcesDir
            getFileStoreDirectory() >> filesDir
            getMetaDataStoreDirectory() >> metaDataDir.file("descriptors")
        }
        def fileAccessTimeJournal = new ModificationTimeFileAccessTimeJournal()
        def usedGradleVersions = Stub(UsedGradleVersions)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top