Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isFailure (0.13 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. subprojects/core/src/main/java/org/gradle/internal/build/ExecutionResult.java

         */
        public abstract ExecutionResult<T> withFailures(ExecutionResult<Void> otherResult);
    
        /**
         * Casts a failed result.
         */
        public abstract <S> ExecutionResult<S> asFailure();
    
        public static <T> ExecutionResult<T> succeeded(T value) {
            return new Success<T>() {
                @Override
                public T getValue() {
                    return value;
                }
            };
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/internal/build/ExecutionResultTest.groovy

            result.failures.empty
            result.rethrow()
    
            when:
            result.failure
    
            then:
            thrown(IllegalArgumentException)
    
            when:
            result.asFailure()
    
            then:
            thrown(IllegalArgumentException)
        }
    
        def "can query successful void result"() {
            def result = ExecutionResult.succeeded()
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 03 03:31:42 UTC 2023
    - 5.6K 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