Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for assertContainsDescendants (0.91 sec)

  1. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/scaladoc/ScalaDocIntegrationTest.groovy

            when:
            succeeds "scaladoc" // intentionally non-qualified
    
            then:
            executedAndNotSkipped scaladoc
            file(docsPath).assertContainsDescendants("House.html", "Other.html", "Person.html")
            file("utils/$docsPath").assertContainsDescendants("City.html")
        }
    
        def "can exclude classes from Scaladoc generation"() {
            classes.baseline()
            buildScript(classes.buildScript())
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:21:33 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenCustomPackagingRealWorldIntegrationTest.groovy

                    into 'libs'
                    from configurations.conf
                }
            """.stripIndent()
    
            when:
            succeeds('resolve')
    
            then:
            file('libs').assertContainsDescendants('nifi-smb-nar-1.12.0.nar')
        }
    
        def 'resolve maven module with valid custom packaging artifact - applies java plugin'() {
            given:
            buildFile.text = '''plugins {
                id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/ZincScalaCompilerMultiVersionIntegrationTest.groovy

            withScalaSources()
    
            expect:
            succeeds("assertZincVersion", "compileScala")
            output.contains("Compiling with Zinc Scala compiler")
            scalaClassFile("compile/test").assertContainsDescendants(
                "Person.class",
                "Person2.class"
            )
        }
    
        def withScalaSources() {
            file("src/main/scala/compile/test/Person.scala") <<
                """
    package compile.test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/PublishAndResolveIntegrationTest.groovy

        def versionIsCopiedAndExists(lib, version, root="") {
            assert TextUtil.normaliseFileSeparators(output).contains("ivy-repo/org.gradle.test/${lib}/${version}/${lib}-${version}.jar")
            testDirectory.assertContainsDescendants("${root}build/copies/${lib}-${version}.jar")
            true
        }
    
        def resolveTask = "resolveAndCopy"
    
        def taskWhichPublishes(lib, version) {
            return """
                publishing {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/PCHUtilsTest.groovy

            then:
            generated.name == "test.${extension}"
            generated.parentFile == pchSourceDir
            generated.text == "#include \"test.h\""
            pchSourceDir.assertContainsDescendants("test.h", "test.${extension}")
    
            where:
            type              | extension
            CPCHCompileSpec   | "c"
            CppPCHCompileSpec | "cpp"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalBuildIntegrationTest.groovy

                outputs.recompiledClasses('renamed-sum')
            } else {
                outputs.recompiledClasses('greeter', 'renamed-sum', 'main')
            }
    
            outputDirectory.assertContainsDescendants(expectedIntermediateDescendants(app.alternate))
            installation("build/install/main/debug").exec().out == app.expectedAlternateOutput
        }
    
        def "removes stale object files for library"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

         * Asserts that this is a directory and contains the given set of descendant files (and possibly other files). Ignores directories that are not empty.
         */
        public TestFile assertContainsDescendants(String... descendants) {
            return assertContainsDescendants(Arrays.asList(descendants));
        }
    
        public TestFile assertIsEmptyDir() {
            assertHasDescendants();
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativePreCompiledHeaderIntegrationTest.groovy

                def outputDirectories = file(pchHeaderDirName).listFiles().findAll { it.isDirectory() }
                assert outputDirectories.size() == 1
                outputDirectories[0].assertContainsDescendants("prefix-headers.${getSuffix()}")
            }
            true
        }
    
        def pchNotCompiled(String lib="hello", String linkage="shared", String sourceSet=app.sourceType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyUnresolvedModuleIntegrationTest.groovy

            !downloadedLibsDir.isDirectory()
    
            when:
            moduleA.pom.expectGet()
            moduleA.artifact.expectGet()
            succeeds('resolve')
    
            then:
            downloadedLibsDir.assertContainsDescendants('a-1.0.jar')
        }
    
        def "skips subsequent dependency resolution if HTTP connection exceeds timeout, and only prints original cause once"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 11:51:18 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ArchiveIntegrationTest.groovy

                    from tarTree('v7.tar')
                    into 'dest'
                }
            """
    
            when:
            succeeds("copy")
    
            then:
            file("dest").assertContainsDescendants("file.txt", "sub/subfile.txt")
        }
    
        def cannotCreateAnEmptyZip() {
            given:
            buildFile << '''
                task zip(type: Zip) {
                    from 'test'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top