Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        private final RuntimeException failure;
    
        public AbstractFailure(RuntimeException failure) {
            this.failure = failure;
        }
    
        @Override
        public boolean isFailure() {
            return true;
        }
    
        @Override
        public RuntimeException getFailure() {
            return failure;
        }
    
        @Override
        public void writeTo(int requestId, HttpExchange exchange) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResponseProducer.java

     */
    
    package org.gradle.test.fixtures.server.http;
    
    import com.sun.net.httpserver.HttpExchange;
    
    import java.io.IOException;
    
    interface ResponseProducer {
        default boolean isFailure() {
            return false;
        }
    
        /**
         * Called to handle a request. Is *not* called under lock.
         */
        void writeTo(int requestId, HttpExchange exchange) throws IOException;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/configurationcache/ConfigurationCacheFixture.groovy

                configurationCacheBuildOperations.assertStateStored(false)
            }
    
            def message = "Configuration cache entry ${details.storeAction}"
            boolean isFailure = spec.result instanceof ExecutionFailure
            if (isFailure) {
                spec.outputContains(message)
            } else {
                spec.postBuildOutputContains(message)
            }
    
            assertHasProblems(problemDetails)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java

                    ResponseProducer responseProducer = selectProducer(id, httpExchange);
                    System.out.printf("[%d] sending response for %s%n", id, outcome.getDisplayName());
                    if (!responseProducer.isFailure()) {
                        responseProducer.writeTo(id, httpExchange);
                    } else {
                        Throwable failure = responseProducer.getFailure();
                        requestFailed(outcome, failure);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/buildtree/DefaultBuildTreeLifecycleController.java

                    ExecutionResult<Void> result = workController.scheduleAndRunRequestedTasks(null);
                    if (!result.getFailures().isEmpty()) {
                        return result.asFailure();
                    }
                }
                T model = modelCreator.fromBuildModel(action);
                return ExecutionResult.succeeded(model);
            });
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 08 07:46:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top