Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for makeUnreadable (0.34 sec)

  1. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

            unreadableDir.makeUnreadable()
    
            expect:
            def stat = accessor.stat(fileInDir)
            stat.type == FileType.RegularFile
            assertSameLastModified(stat, fileInDir)
            stat.length == 0
            assertSameAccessType(stat, DIRECT)
    
            cleanup:
            unreadableDir.makeReadable()
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatisticsTest.groovy

        def "can visit unreadable #type"() {
            given:
            def rootDir = tmpDir.createDir("root")
            def unreadableFile = rootDir.file('unreadable')
            unreadableFile."create${type.capitalize()}"().makeUnreadable()
    
            when:
            snapshot(rootDir)
    
            then:
            def ex = thrown(UncheckedIOException)
            ex.message == String.format(message, unreadableFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

            def outputDirectory = file("output")
            def unreadableOutput = file("${outputDirectory.name}/unreadable${type.capitalize()}")
            create(unreadableOutput).makeUnreadable()
    
            buildFile << """
                task copy(type: Copy) {
                    from '${input.name}'
                    into '${outputDirectory.name}'
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/SyncTaskIntegrationTest.groovy

            def input = file("readableFile.txt").createFile()
    
            def outputDirectory = file("output")
            def unreadableOutput = outputDirectory.file("unreadableFile").createFile()
            unreadableOutput.makeUnreadable()
    
            buildFile << """
                task sync(type: Sync) {
                    from '${input.name}'
                    into '${outputDirectory.name}'
                }
            """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

            unreadable."create${type.capitalize()}"().makeUnreadable()
    
            when:
            directorySnapshotter.snapshot(rootDir.absolutePath, null, [:], unfilteredSubSnapshotsCollector)
    
            then:
            def ex = thrown(UncheckedIOException)
            ex.message == String.format(message, unreadable.absolutePath)
            0 * _
    
            cleanup:
            rootDir.listFiles()*.makeReadable()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                throw new RuntimeException(e);
            }
            return this;
        }
    
        public TestFile makeUnreadable() {
            boolean success = setReadable(false, false);
            assert success;
            assert !Files.isReadable(toPath());
            return this;
        }
    
        public TestFile makeReadable() {
            boolean success = setReadable(true, false);
            assert success;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiIntegrationTest.groovy

            }
            task check {
                doLast {
                    assert gradle.gradleVersion == '${otherVersion.version.version}'
                }
            }"""
            otherVersion.binDistribution.makeReadable()
            executer.withTasks('wrapper').run()
    
            when:
            toolingApi.withConnector { connector ->
                connector.useBuildDistribution()
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 13.8K bytes
    - Viewed (0)
Back to top