Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sendSomeAndBlock (0.18 sec)

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

            def getM1Pom = server.get(m1.pom.path).sendSomeAndBlock(longXml(m1.pom.file))
            def getM2Pom = server.get(m2.pom.path).sendSomeAndBlock(longXml(m2.pom.file))
            def metaData = server.expectConcurrentAndBlock(getM1Pom, getM2Pom)
            def getM1Jar = server.get(m1.artifact.path).sendSomeAndBlock(longJar(m1.artifact.file))
            def getM2Jar = server.get(m2.artifact.path).sendSomeAndBlock(longJar(m2.artifact.file))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 14 00:59:27 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServerTest.groovy

            noExceptionThrown()
        }
    
        def "can send partial response and block"() {
            given:
            def request1 = server.get("a").sendSomeAndBlock(new byte[2048])
            def request2 = server.get("b").sendSomeAndBlock(new byte[2048])
            server.expect(request1)
            server.expect(request2)
            server.start()
    
            when:
            async {
                start {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMethod.java

        @Override
        public BuildableExpectedRequest send(String content) {
            replaceBody(new SendFixedContent(200, content), null);
            return this;
        }
    
        @Override
        public BlockingRequest sendSomeAndBlock(byte[] content) {
            if (content.length < 1024) {
                throw new IllegalArgumentException("Content is too short.");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiRemoteIntegrationTest.groovy

            for (i in 0..<content.length) {
                content[i++] = reader.read() as byte
            }
    
            def downloadHandle = server.get("cancelled-dist.zip").sendSomeAndBlock(content)
            server.expect(downloadHandle)
    
            and:
            toolingApi.withConnector {
                it.useDistribution(distUri)
                it.useGradleUserHomeDir(userHomeDir)
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

             * Sends a 200 response with the given content. Returns 1K of the content then blocks waiting for {@link BlockingRequest#release()} before returning the remainder to the client.
             */
            BlockingRequest sendSomeAndBlock(byte[] content);
        }
    
        /**
         * Allows the test to synchronise with and unblock a single request.
         */
        public interface BlockingRequest extends ExpectedRequest {
            /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top