Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for matchesNameAndVersion (0.19 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/RepositoryHttpServer.groovy

    import org.gradle.test.fixtures.ivy.IvyFileRepository
    import org.gradle.test.fixtures.server.RepositoryServer
    import org.gradle.util.GradleVersion
    
    import static org.gradle.test.matchers.UserAgentMatcher.matchesNameAndVersion
    
    class RepositoryHttpServer extends HttpServer implements RepositoryServer {
    
        private TestDirectoryProvider testDirectoryProvider
        private String gradleVersion
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/matchers/UserAgentMatcher.java

        }
    
        @Override
        public void describeTo(Description description) {
            description.appendValue(expectedUserAgentString());
        }
    
        @Factory
        public static UserAgentMatcher matchesNameAndVersion(String applicationName, String version) {
            return new UserAgentMatcher(applicationName, version);
        }
    
        @Override
        public boolean matches(Object o) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy

    import org.gradle.wrapper.Download
    import org.junit.Rule
    import spock.lang.Issue
    
    import static org.gradle.integtests.WrapperHttpIntegrationTest.TEST_DISTRIBUTION_URL
    import static org.gradle.test.matchers.UserAgentMatcher.matchesNameAndVersion
    import static org.hamcrest.CoreMatchers.containsString
    import static org.hamcrest.MatcherAssert.assertThat
    
    // wrapperExecuter requires a real distribution
    @Requires(IntegTestPreconditions.NotEmbeddedExecutor)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/ExternalScriptExecutionIntegrationTest.groovy

            executer.requireOwnGradleUserHomeDir() //we need an empty external resource cache
    
            TestFile script = testFile('external.gradle')
            server.expectUserAgent(UserAgentMatcher.matchesNameAndVersion("Gradle", GradleVersion.current().getVersion()))
            server.expectGet('/external.gradle', script)
            server.start()
    
            script << """
                task doStuff
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top