ratpack.test.exec.ExecResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ratpack-test Show documentation
Show all versions of ratpack-test Show documentation
Test time support for developing Ratpack applications and extensions
/*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package ratpack.test.exec;
import ratpack.exec.Result;
/**
* The result of an {@link ExecHarness#yield(ratpack.func.Function)} operation.
*
* @param the type of promised value
*/
public interface ExecResult extends Result {
/**
* Is the result that the execution completed without a value being returned.
*
* This can happen if the promise was {@link ratpack.exec.PromiseOperations#route(ratpack.func.Predicate, ratpack.func.Action) routed} instead of being returned to the caller,
* or if the promise failed and the error was handled “upstream”.
* In such a case, the code under test handled the promised value.
* As the promise producing code dealt with the value, the tests will have to examine the side affects of this occurring.
*
* @return true if the execution the promise was bound to completed before the promised value was provided.
*/
boolean isComplete();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy