Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for makeUnreadable (0.18 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)
Back to top