Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for hasCompression (0.21 sec)

  1. subprojects/core/src/test/groovy/org/gradle/internal/classpath/InPlaceClasspathBuilderTest.groovy

            }
    
            then:
            def zip = new ZipTestFixture(file)
            zip.hasCompression("store.txt", ZipEntry.STORED)
            zip.hasCompression("undefined.txt", ZipEntry.DEFLATED)
            zip.hasCompression("dir/deflated.txt", ZipEntry.DEFLATED)
        }
    
        def "can construct a directory"() {
            def dir = tmpDir.file("things")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:05:09 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ZipTestFixture.groovy

                    addCompressionMethod(entry.name, entry.getMethod())
                }
            } finally {
                zipFile.close();
            }
        }
    
        void hasCompression(String relativePath, int compressionMethod) {
            def methods = compressionMethodsByRelativePath.get(relativePath)
            assert methods.size() == 1
            assertThat(methods.get(0), equalTo(compressionMethod))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy

            then:
            cachedClasspath.asFiles == [cachedFile]
            def zip = new ZipTestFixture(cachedFile)
            zip.hasCompression("a.class", ZipEntry.DEFLATED)
            zip.hasCompression("res.txt", ZipEntry.STORED)
        }
    
        def "uses non-file URL from origin"() {
            given:
            def file = testDir.file("thing.jar")
            jar(file)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top