Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for assertContainsFile (0.16 sec)

  1. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

            this
        }
    
        def assertContainsFile(String relativePath) {
            assert filesByRelativePath.keySet().contains(relativePath)
            this
        }
    
        def assertNotContainsFile(String relativePath) {
            assert !filesByRelativePath.keySet().contains(relativePath)
            this
        }
    
        def assertContainsFile(String relativePath, int occurrences) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. platforms/jvm/plugins-java-library/src/integTest/groovy/org/gradle/java/JavaLibraryDocumentationIntegrationTest.groovy

            jar('sources/a-sources.jar').assertContainsFile('ToolImpl.java')
            jar('sources/b-sources.jar').assertContainsFile('Tool.java')
            jar('sources/b-sources.jar').assertContainsFile('ToolHelper.java')
            jar('sources/c-sources.jar').assertContainsFile('Internal.java')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/organizinggradleprojects/SamplesOrganizingGradleProjectsIntegrationTest.groovy

            then:
            def customDistribution = sample.dir.file('groovy/build/distributions/mycompany-gradle-4.6-0.1-bin.zip')
            customDistribution.assertExists()
            new ZipTestFixture(customDistribution).assertContainsFile("gradle-4.6/init.d/repositories.gradle")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. platforms/jvm/war/src/test/groovy/org/gradle/api/tasks/bundling/WarTest.groovy

                spec.from temporaryFolder.createFile('file.txt')
            } as Action<CopySpec>)
    
            when:
            execute(war)
    
            then:
            new JarTestFixture(war.archiveFile.get().asFile).assertContainsFile('WEB-INF/file.txt')
        }
    
        def "configures destinationDirectory for war tasks"() {
            when:
            project.pluginManager.apply(JavaBasePlugin)
            project.version = '1.0'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 18:51:45 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/software/maven/src/integTest/groovy/org/gradle/api/publish/maven/MavenPublishJavaWithDocsAndFeaturesIntegTest.groovy

                assert javadocFile.isFile()
                def javadocContents = new ZipTestFixture(javadocFile)
                javadocContents.assertContainsFile("${classNameForFeature(featureName)}.html")
                features().findAll { it != featureName }.each { otherFeatureName ->
                    javadocContents.assertNotContainsFile("${classNameForFeature(otherFeatureName)}.html")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. platforms/jvm/platform-jvm/src/test/groovy/org/gradle/jvm/tasks/JarTest.groovy

                spec.from temporaryFolder.createFile('file.txt')
            } as Action<CopySpec>)
    
            when:
            execute(jar)
    
            then:
            new JarTestFixture(jar.archiveFile.get().asFile).assertContainsFile('META-INF/file.txt')
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/JarTestFixture.groovy

        def assertIsMultiRelease() {
            assert "true" == manifest.mainAttributes.getValue("Multi-Release")
            this
        }
    
        def assertContainsVersioned(int version, String basePath) {
            assertContainsFile(toVersionedPath(version, basePath))
            this
        }
    
        def assertNotContainsVersioned(int version, String basePath) {
            assertNotContainsFile(toVersionedPath(version, basePath))
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 14:13:17 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            def cacheFile = listCacheFiles().find { it.name == cacheKey }
            cacheFile.exists()
            def cacheEntry = new TarTestFixture(cacheFile)
            cacheEntry.assertContainsFile("tree-outputDir/output")
            def metadata = cacheEntry.content("METADATA")
            metadata.contains("type=")
            metadata.contains("identity=")
            metadata.contains("gradleVersion=")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/jvm/ear/src/test/groovy/org/gradle/plugins/ear/EarTest.groovy

            } as Action<CopySpec>)
    
            when:
            execute(ear)
    
            then:
            ear.archiveFile.get().asFile.isFile()
            new JarTestFixture(ear.archiveFile.get().asFile).assertContainsFile('lib/file.txt')
        }
    
        def "configures destinationDirectory for ear tasks"() {
            when:
            project.pluginManager.apply(JavaBasePlugin)
            project.version = '1.0'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 19:58:25 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top