Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertContentsHaveChangedSince (0.23 sec)

  1. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesChangingModulesIntegrationTest.groovy

            def snapshot = artifact.snapshot()
    
            and:
            moduleA.publishWithChangedContent()
            run("retrieve")
    
            then:
            artifact.assertContentsHaveChangedSince(snapshot)
    
            when:
            buildFile << """
    class ChangingFalseRule implements ComponentMetadataRule {
        public void execute(ComponentMetadataContext context) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/NativeBinaryFixture.groovy

        }
    
        URI toURI() {
            file.toURI()
        }
    
        Snapshot snapshot() {
            file.snapshot()
        }
    
        void assertHasChangedSince(Snapshot snapshot) {
            file.assertContentsHaveChangedSince(snapshot)
        }
    
        void assertExists() {
            file.assertIsFile()
        }
    
        void assertDoesNotExist() {
            file.assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            assertTrue(String.format("contents or modification time of %s have not changed", this), now.modTime != snapshot.modTime || !now.hash.equals(snapshot.hash));
        }
    
        public void assertContentsHaveChangedSince(Snapshot snapshot) {
            Snapshot now = snapshot();
            assertNotEquals(String.format("contents of %s have not 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)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/maven/MavenSnapshotResolveIntegrationTest.groovy

            expectChangedModuleServed(snapshotModule)
    
            and:
            run 'resolveStaleThenFresh'
    
            then:
            file('fresh/unique-1.0-SNAPSHOT.jar').assertContentsHaveChangedSince(firstFreshVersion)
            file('fresh/unique-1.0-SNAPSHOT.jar').assertIsCopyOf(snapshotModule.artifactFile)
        }
    
        def "does not download snapshot artifacts after expiry when snapshot has not changed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 39K bytes
    - Viewed (0)
Back to top