Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for assertCanWait (0.2 sec)

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

        }
    
        @Override
        public WaitPrecondition getWaitPrecondition() {
            return this;
        }
    
        @Override
        public void assertCanWait() throws IllegalStateException {
            lock.lock();
            try {
                previous.assertCanWait();
                if (notReceived.isEmpty()) {
                    // Have received all requests so downstream can wait.
                    return;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java

                httpExchange.sendResponseHeaders(200, 0);
            }
        }
    
        private class MustBeRunning implements WaitPrecondition {
            @Override
            public void assertCanWait() throws IllegalStateException {
                lock.lock();
                try {
                    if (!running) {
                        throw new IllegalStateException("Cannot wait as the server is not running.");
    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