Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for assertDoesNotExist (0.2 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/DefaultArtifactCacheLockingAccessCoordinatorTest.groovy

            then:
            file1.assertExists()
            file2.assertDoesNotExist()
            file3.assertDoesNotExist()
        }
    
        def "deletes old versions of cache dir"() {
            given:
            def oldCacheDir = cacheDir.getParentFile().createDir("modules-1")
    
            when:
            cacheLockingManager.close()
    
            then:
            oldCacheDir.assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/BinDistributionIntegrationSpec.groovy

            given:
            TestFile contentsDir = unpackDistribution()
    
            expect:
            checkMinimalContents(contentsDir)
            contentsDir.file('src').assertDoesNotExist()
            contentsDir.file('samples').assertDoesNotExist()
            contentsDir.file('docs').assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/rules/OverlappingOutputsIntegrationTest.groovy

            // FIXME Loading from cache destroys the overlap directory, but the task should not be loaded from cache
            fileTaskOutput.assertDoesNotExist()
            localStateDirTaskOutput.assertExists()
            // Task was loaded from cache, so local state was removed
            localStateDirTaskState.assertDoesNotExist()
            // fileTask can be from the cache, but the dirTask cannot due to a cache miss
            result.assertTaskSkipped(localStateDirTask)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 20:54:14 UTC 2024
    - 30K bytes
    - Viewed (0)
  4. testing/integ-test/src/integTest/groovy/org/gradle/integtests/AntProjectIntegrationTest.groovy

    task ant(dependsOn: target1)
    """
            TestFile target1File = testFile('build/target1.txt')
            TestFile target2File = testFile('build/target2.txt')
            target1File.assertDoesNotExist()
            target2File.assertDoesNotExist()
    
            inTestDirectory().withTasks('ant').run().assertTasksExecutedInOrder(':initialize', ':target2', ':target1', ':ant')
    
            target1File.assertExists()
            target2File.assertExists()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLifecyclePluginIntegrationTest.groovy

            then:
            configurationCache.assertStateStored()
    
            and:
            buildDir.assertDoesNotExist()
    
            when:
            buildDir.mkdir()
            configurationCacheRun 'clean'
    
            then:
            configurationCache.assertStateLoaded()
    
            and:
            buildDir.assertDoesNotExist()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppApplicationInitIntegrationTest.groovy

            and:
            subprojectDir.file("src/main/cpp/${SAMPLE_APP_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/main/headers/${SAMPLE_APP_HEADER}").assertDoesNotExist()
            subprojectDir.file("src/test/cpp/${SAMPLE_APP_TEST_CLASS}").assertDoesNotExist()
    
            when:
            run("build")
    
            then:
            executed(":app:test")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/CppLibraryInitIntegrationTest.groovy

            dslFixtureFor(scriptDsl).assertGradleFilesGenerated()
    
            and:
            subprojectDir.file("src/main/cpp/${SAMPLE_LIB_CLASS}").assertDoesNotExist()
            subprojectDir.file("src/main/public/hello.h").assertDoesNotExist()
            subprojectDir.file("src/test/cpp/${SAMPLE_LIB_TEST_CLASS}").assertDoesNotExist()
    
            when:
            run("build")
    
            then:
            executed(":lib:test")
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:55 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultPersistentDirectoryStoreTest.groovy

            expect:
            store.toString() == "<display> ($cacheDir)"
        }
    
        def "open creates directory if it does not exist"() {
            given:
            cacheDir.assertDoesNotExist()
    
            when:
            store.open()
    
            then:
            cacheDir.assertIsDir()
        }
    
        def "open does nothing when directory already exists"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:40:49 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileCompatibilityIntegrationTest.groovy

            withInstallations(jdk).fails(":compileJava")
    
            then:
            failure.assertHasErrorOutput("Parent.java:3: error: sealed classes are not supported in -source 11")
            javaClassFile("Parent.class").assertDoesNotExist()
        }
    
        def "source compatibility matching the compiler version allows accessing Java language features"() {
            def jdk = AvailableJavaHomes.getJdk(JavaVersion.VERSION_17)
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperGenerationIntegrationTest.groovy

            assert throwable.message.contains("Test of distribution url ${url} failed. Please check the values set with --gradle-distribution-url and --gradle-version.")
            file("gradle/wrapper/gradle-wrapper.properties").assertDoesNotExist()
        }
    
        def "wrapper task succeeds if http distribution url from command-line is valid"() {
            given:
            def path = "/distributions/8.0-rc-5"
            def file = file(path) << "some content"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top