Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 26 of 26 for assertContents (0.46 sec)

  1. platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/ScalaPluginIntegrationTest.groovy

                }
            """
            expect:
            succeeds(":ear:assemble")
            // The Scala incremental compilation mapping should not be exposed to anything else
            file("ear/build/tmp/ear/application.xml").assertContents(not(containsString("implementationScala.mapping")))
        }
    
        def "forcing an incompatible version of Scala fails with a clear error message"() {
            def fixedScalaVersion = "2.10.7"
            settingsFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/integTest/groovy/org/gradle/buildinit/plugins/JavaLibraryInitIntegrationTest.groovy

            scriptDsl << ScriptDslFixture.SCRIPT_DSLS
        }
    
        private static void buildFileSeparatesImplementationAndApi(ScriptDslFixture dslFixture, String testFramework = 'junit.jupiter') {
            dslFixture.buildFile.assertContents(
                allOf(
                    dslFixture.containsConfigurationDependencyNotation('api', 'libs.commons.math3'),
                    dslFixture.containsConfigurationDependencyNotation('implementation', 'libs.guava'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 03:26:38 UTC 2024
    - 11.8K bytes
    - Viewed (1)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheJavaIntegrationTest.groovy

                    }
                }
            """
            def manifestFile = file("build/tmp/jar/MANIFEST.MF")
            def assertCreatedBy = { creator ->
                manifestFile.assertContents(
                    containsString("Created-By: $creator")
                )
            }
    
            when:
            configurationCacheRun ":jar", "-Dcreator=creator1"
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

                    throw new AssertionError(String.format("%s should not exist:\n%s", this, String.join("\n", descendants)));
                }
            }
            return this;
        }
    
        public TestFile assertContents(Matcher<String> matcher) {
            assertThat(getText(), matcher);
            return this;
        }
    
        public TestFile assertIsCopyOf(TestFile other) {
            assertIsFile();
            other.assertIsFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

                }
            '''.stripIndent()
    
            when:
            run 'copy'
    
            then:
            file('dest').assertHasDescendants('path/file.txt')
            file('dest/path/file.txt').assertContents(Matchers.containsText("file1"))
        }
    
        @Issue("https://github.com/gradle/gradle/issues/5748")
        def "duplicate detection works when . is a path segment"() {
            // FAIL
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.enqueue(response)
        server.enqueue(response)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/foo")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/bar?baz=quux")))
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
        assertContent("ABCDEFGHIJKLMNOPQR", getResponse(newRequest("/z")))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top