Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 428 for TemporaryFolder (0.35 sec)

  1. platforms/core-execution/workers/src/testFixtures/groovy/org/gradle/workers/fixtures/WorkerExecutorFixture.groovy

        private final TestNameTestDirectoryProvider temporaryFolder
        final WorkParameterClass testParameterType
        final WorkActionClass workActionThatCreatesFiles
        final WorkActionClass workActionThatFails
    
        WorkerExecutorFixture(TestNameTestDirectoryProvider temporaryFolder) {
            this.temporaryFolder = temporaryFolder
            this.outputFileDir = temporaryFolder.file("build/workers")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 12:36:12 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/GcsClientIntegrationTest.groovy

        @Rule
        final TestNameTestDirectoryProvider temporaryFolder = new TestNameTestDirectoryProvider(getClass())
    
        @Rule
        final GcsServer server = new GcsServer(temporaryFolder)
    
        def "should perform put, get and list on an Gcs bucket"() {
            setup:
            def fileContents = 'This is only a test'
            File file = temporaryFolder.createFile(FILE_NAME)
            file << fileContents
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

            def cacheEntry = localCache.getCacheEntry(cacheKey)
    
            // Must rename to "*.tgz" for unpacking to work
            def tgzCacheEntry = temporaryFolder.file("cache.tgz")
            cacheEntry.copyBytesTo(tgzCacheEntry)
            def extractDir = temporaryFolder.file("extract")
            tgzCacheEntry.untarTo(extractDir)
            tgzCacheEntry.delete()
    
            def metadata = new Properties()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  4. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/install/internal/SecureFileDownloaderTest.groovy

        @TempDir
        public File temporaryFolder
    
        def "successful download creates destination file with the right content"() {
            RepositoryTransportFactory transportFactory = newTransportFactory()
    
            given:
            def downloader = new SecureFileDownloader(transportFactory)
            def destinationFile = new File(Files.createTempDirectory(temporaryFolder.toPath(), null).toFile(), "target")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jul 28 16:17:59 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/objectivecpp/tasks/ObjectiveCppCompileTest.groovy

            def sourceFile = temporaryFolder.createFile("sourceFile")
            def result = Mock(WorkResult)
            when:
            objCppCompile.toolChain = toolChain
            objCppCompile.targetPlatform = platform
            objCppCompile.compilerArgs = ["arg"]
            objCppCompile.macros = [def: "value"]
            objCppCompile.objectFileDir = temporaryFolder.file("outputFile")
            objCppCompile.source sourceFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestReportTest.groovy

        def "can attach result dirs"() {
            def binDir = temporaryFolder.file("other")
    
            when:
            reportTask.testResults.from(binDir)
    
            then:
            reportTask.testResults.files as List == [binDir]
        }
    
        def test(String name) {
            def test = TestUtil.createTask(Test, project, name)
            test.binaryResultsDirectory.set(temporaryFolder.file(name))
            return test
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DefaultWorkerExecutorParallelTest.groovy

            _ * projectCacheDir.getDir() >> temporaryFolder
            workerExecutor = new DefaultWorkerExecutor(workerDaemonFactory, workerInProcessFactory, workerNoIsolationFactory, forkOptionsFactory, workerThreadRegistry, buildOperationRunner, asyncWorkerTracker, workerDirectoryProvider, executionQueueFactory, classLoaderStructureProvider, actionExecutionSpecFactory, instantiator, classpathTransformer, temporaryFolder, projectCacheDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 14:22:31 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/tooling/GradleBuildBuilderTest.groovy

            def includedProject2 = Mock(ProjectState)
            includedProject2.projectPath >> Path.ROOT
    
            def rootDir = temporaryFolder.createDir("root")
            def dir1 = temporaryFolder.createDir("dir1")
            def dir2 = temporaryFolder.createDir("dir2")
    
            def rootBuild = Mock(GradleInternal)
            def build1 = Mock(GradleInternal)
            def build2 = Mock(GradleInternal)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/processor/ConfigurationCacheInstrumentationProcessorTest.groovy

        @Rule
        final TestNameTestDirectoryProvider temporaryFolder = new TestNameTestDirectoryProvider(getClass())
        final TestFile srcDir = temporaryFolder.createDir('src')
        final TestFile outDir = temporaryFolder.createDir('out')
        final TestFile classesDir = temporaryFolder.createDir('classes')
    
        def "code generation is deterministic regardless of type processing order"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/archive/impl/FileZipInputTest.groovy

    import org.junit.Rule
    import spock.lang.Specification
    
    class FileZipInputTest extends Specification implements ZipFileFixture{
        @Rule
        TestNameTestDirectoryProvider temporaryFolder = new TestNameTestDirectoryProvider(getClass())
    
        def "selects the correct zip input type"() {
            def file = makeZip("foo.zip")
    
            when:
            def zipInput = FileZipInput.create(file)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top