Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 50 for assertDoesNotExist (0.79 sec)

  1. platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/AbstractSourcesAndJavadocJarsIntegrationTest.groovy

            ideFileContainsEntry("groovy-${groovyVersion}.jar", ["groovy-${groovyVersion}-sources.jar"], [])
        }
    
        void assertSourcesDirectoryDoesNotExistInDistribution() {
            gradleDistributionSrcDir().assertDoesNotExist()
        }
    
        private TestFile gradleDistributionSrcDir() {
            return new TestFile(distribution.gradleHomeDir, "src")
        }
    
        def givenGroovyExistsInGradleRepo() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/javadoc/JavadocIntegrationTest.groovy

                }
            """
            when:
            succeeds("javadoc")
            then:
            file("build/docs/javadoc/pkg/Foo.html").assertExists()
            file("build/docs/javadoc/pkg/internal/IFoo.html").assertDoesNotExist()
        }
    
        private TestFile writeSourceFile() {
            file("src/main/java/Foo.java") << "public class Foo {}"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 06:04:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. platforms/software/ivy/src/integTest/groovy/org/gradle/api/publish/ivy/IvyPublishHttpIntegTest.groovy

            and:
            module.jar.expectPutBroken(HTTP_UNRECOVERABLE_ERROR)
    
            when:
            fails ':publish'
    
            then:
            module.jarFile.assertExists()
            module.ivyFile.assertDoesNotExist()
        }
    
        def "retries artifact upload for transient network error"() {
            given:
            buildFile << """
                apply plugin: 'java'
                apply plugin: 'ivy-publish'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  4. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/StaleOutputIntegrationTest.groovy

            def myTaskDir = file("external/output").createDir()
    
            when:
            succeeds("myTask")
            then:
            dirInBuildDir.assertIsEmptyDir()
            customFile.assertDoesNotExist()
            buildFile.assertExists()
            // We should improve this eventually.  We currently don't delete _all_ outputs from every task
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ivy/IvyFileModule.groovy

            sha1File.assertIsFile()
            assert HashCode.fromString(sha1File.text) == Hashing.sha1().hashFile(testFile)
        }
    
        void assertNotPublished() {
            ivyFile.assertDoesNotExist()
        }
    
        void assertIvyAndJarFilePublished() {
            assertArtifactsPublished(ivyFile.name, jarFile.name)
            assertPublished()
        }
    
        void assertMetadataAndJarFilePublished() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

            file("build/output/file.txt").assertExists()
    
            when:
            succeeds("clean")
            then:
            result.assertTasksExecuted(":clean")
            file("build/output/file.txt").assertDoesNotExist()
    
            when:
            succeeds("customTask")
            then:
            result.assertTasksExecuted(":customTask")
            file("build/output/file.txt").assertExists()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

        }
    
        public TestFile assertIsDir(String hint) {
            assertTrue(String.format("%s is not a directory. %s", this, hint), isDirectory());
            return this;
        }
    
        public TestFile assertDoesNotExist() {
            if (exists()) {
                Set<String> descendants = new TreeSet<>();
                if (isFile()) {
                    throw new AssertionError(String.format("%s should not exist", 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/swift/SwiftApplicationIntegrationTest.groovy

                }
             """
    
            expect:
            succeeds "compileDebug"
            result.assertTasksExecuted(":compileDebugSwift", ':compileDebug')
            executable("build/exe/main/debug/App").assertDoesNotExist()
            objectFiles(app.main)*.assertExists()
        }
    
        def "can use installDirectory as task dependency"() {
            given:
            def app = new SwiftApp()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 12:43:37 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

                }
             """
    
            expect:
            succeeds "compileDebug"
            result.assertTasksExecuted(tasks.debug.compile, ':compileDebug')
            executable("build/exe/main/debug/app").assertDoesNotExist()
            objectFiles(app.main)*.assertExists()
        }
    
        @ToBeFixedForConfigurationCache
        def "can use installDirectory as task dependency"() {
            settingsFile << "rootProject.name = 'app'"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileIntegrationTest.groovy

            """
    
            succeeds "test"
            then:
            executedAndNotSkipped ":test"
            javaClassFile("com/Example/Foo.class").assertIsFile()
            javaClassFile("com/example/Foo.class").assertDoesNotExist()
        }
    
        def "implementation dependencies should not leak into compile classpath of consumer"() {
            mavenRepo.module('org.gradle.test', 'shared', '1.0').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 20:20:39 UTC 2024
    - 39.6K bytes
    - Viewed (0)
Back to top