Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for assertContentsHaveNotChangedSince (0.24 sec)

  1. platforms/software/dependency-management/src/crossVersionTest/groovy/org/gradle/integtests/resolve/artifactreuse/CacheReuseCrossVersionIntegrationTest.groovy

            version current withGradleUserHomeDir userHome withTasks 'retrieve' withArguments '-i' run()
    
            then:
            file('libs').assertHasDescendants('projectB-1.0.jar')
            file('libs/projectB-1.0.jar').assertContentsHaveNotChangedSince(snapshot)
        }
    
        def "uses cached artifacts from previous Gradle version with sha1 header"() {
            given:
            def projectB = mavenHttpRepo.module('org.name', 'projectB', '1.0').publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  2. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/JacocoCachingIntegrationTest.groovy

            when:
            withBuildCache().run "jacocoTestReport", "jacocoTestCoverageVerification"
            then:
            skipped ":test", ":jacocoTestReport", ":jacocoTestCoverageVerification"
            reportFile.assertContentsHaveNotChangedSince(snapshot)
        }
    
        def "jacoco file results are not cached when sharing output with another task"() {
            javaProjectUnderTest.writeIntegrationTestSourceFiles()
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/crossVersionTest/groovy/org/gradle/integtests/resolve/artifactreuse/SameCacheUsageCrossVersionIntegrationTest.groovy

            version current withGradleUserHomeDir userHome withTasks 'retrieve' withArguments '-i' run()
    
            then:
            file('libs').assertHasDescendants('projectB-1.0.jar')
            file('libs/projectB-1.0.jar').assertContentsHaveNotChangedSince(snapshot)
        }
    
        static boolean isIgnoredMilestone(DefaultGradleDistribution distribution) {
            def v = distribution.version
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesChangingModulesIntegrationTest.groovy

    dependencies.components.all(ChangingFalseRule)
    """
            snapshot = artifact.snapshot()
            server.resetExpectations()
    
            and:
            run("retrieve")
    
            then:
            artifact.assertContentsHaveNotChangedSince(snapshot)
        }
    
        def "rule cannot make a dependency non-changing"() {
            buildFile <<
    """
    $repoDeclaration
    configurations {
        modules {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            Snapshot now = snapshot();
            assertNotEquals(String.format("contents of %s have not changed", this), snapshot.hash, now.hash);
        }
    
        public void assertContentsHaveNotChangedSince(Snapshot snapshot) {
            Snapshot now = snapshot();
            assertEquals(String.format("contents of %s has changed", this), snapshot.hash, now.hash);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top