Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for assertDoesNotExist (0.19 sec)

  1. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/AllDistributionIntegrationSpec.groovy

            contentsDir.file('src/wrapper-main/org/gradle/wrapper/GradleWrapperMain.java').assertIsFile()
    
            // Samples
            contentsDir.file('samples').assertDoesNotExist()
    
            assertDocsExist(contentsDir, version)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/UndefinedBuildExecutionIntegrationTest.groovy

            executer.usingProjectDirectory(file("buildSrc"))
            then:
            succeeds("jar")
            file("buildSrc/.gradle").assertIsDir()
            executer.gradleUserHomeDir.file(BuildScopeCacheDir.UNDEFINED_BUILD).assertDoesNotExist()
        }
    
        def "treats empty buildSrc as undefined build"() {
            given:
            file("buildSrc").createDir()
    
            expect:
            executer.usingProjectDirectory(file("buildSrc"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-test-report-aggregation/src/integTest/groovy/org/gradle/api/plugins/TestReportAggregationPluginIntegrationTest.groovy

            result.assertTaskNotExecuted(':application:testAggregateTestReport')
    
            file("application/build/reports/tests/unit-test/aggregated-results").assertDoesNotExist()
        }
    
        def 'test verification failure creates aggregated report with --continue flag'() {
            given:file("application/build.gradle") << """
                apply plugin: 'org.gradle.test-report-aggregation'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/LeastRecentlyUsedCacheCleanupTest.groovy

            cleanupAction.clean(cleanableStore, progressMonitor)
    
            then:
            cacheEntries[0].assertExists()
            cacheEntries[1].assertExists()
            cacheEntries[2].assertExists()
            cacheEntries[3].assertDoesNotExist()
            1 * fileAccessTimeJournal.deleteLastAccessTime(cacheEntries[3])
        }
    
        def "finds no files to delete when files are new"() {
            given:
            long now = System.currentTimeMillis()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/SwiftApplicationInitIntegrationTest.groovy

            and:
            subprojectDir.file("src/main/swift/${SAMPLE_APPLICATION_CLASS}").text.contains("hola()")
            subprojectDir.file("src/test/swift/${SAMPLE_APPLICATION_TEST_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/test/swift/${LINUX_MAIN_DOT_SWIFT}").text.contains("HolaTests.allTests")
    
            when:
            run("build")
    
            then:
            executed(":app:test")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryCacheTest.groovy

        def initialisesCacheWhenCacheDirDoesNotExist() {
            given:
            def emptyDir = temporaryFolder.getTestDirectory().file("dir")
    
            expect:
            emptyDir.assertDoesNotExist()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. 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)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformCachingIntegrationTest.groovy

            and:
            // start as new process so journal is not restored from in-memory cache
            executer.withTasks("help").start().waitForFinish()
    
            then:
            outputDir1.assertDoesNotExist()
            outputDir2.assertExists()
            gcFile.lastModified() >= SECONDS.toMillis(beforeCleanup)
        }
    
        def "cleans up cache when retention is configured less than the default"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:52:44 UTC 2024
    - 97.8K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top