Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sendSomeAndBlock (0.3 sec)

  1. 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)
  2. 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)
  3. 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