@Override public boolean isSatisfied() { return isSatisfied.getAsBoolean(); } };
@Override public boolean isSatisfied() { return isSatisfied.getAsBoolean(); } };
public boolean samplerCheck() { return sampler.getAsBoolean(); }
@Override public boolean isSatisfied() { return isSatisfied.getAsBoolean(); } };
@Override public boolean getAsBoolean() { return n++ < max && predicate.getAsBoolean(); } };
public Zone(String name, BooleanSupplier regionFunction) { this(name, (pos, region) -> regionFunction.getAsBoolean()); }
public static void awaitForever( BooleanSupplier condition, long checkInterval, TimeUnit unit ) { long sleep = unit.toNanos( checkInterval ); do { if ( condition.getAsBoolean() ) { return; } LockSupport.parkNanos( sleep ); } while ( true ); }
@Override public boolean defined(Object o) { return type.isInstance(o) && externalPredicate.getAsBoolean(); } };
@Override public boolean defined(Object o) { return type.isInstance(o) && externalPredicate.getAsBoolean(); } };
@Override public boolean defined(Object o) { return type.isInstance(o) && externalPredicate.getAsBoolean(); } };
@Override public TransformationState<T> process(Optional<T> elementOptional) { if (!lastProcessYielded && yieldSignal.getAsBoolean()) { lastProcessYielded = true; return TransformationState.yield(); } lastProcessYielded = false; return elementOptional .map(TransformationState::ofResult) .orElseGet(TransformationState::finished); } }
private BooleanSupplier mergeEndCondition( BooleanSupplier additionalEndCondition ) { BooleanSupplier existingEndCondition = endCondition; return existingEndCondition == null ? additionalEndCondition : () -> existingEndCondition.getAsBoolean() || additionalEndCondition.getAsBoolean(); }
private static boolean sendFirst(final ArrayDeque<BooleanSupplier> responseQueue) { return responseQueue.peekFirst().getAsBoolean(); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @param message the message to be included in the {@code TestAbortedException} * if the assumption is invalid * @throws TestAbortedException if the assumption is not {@code true} */ public static void assumeTrue(BooleanSupplier assumptionSupplier, String message) throws TestAbortedException { assumeTrue(assumptionSupplier.getAsBoolean(), message); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @throws TestAbortedException if the assumption is not {@code true} */ public static void assumeTrue(BooleanSupplier assumptionSupplier) throws TestAbortedException { assumeTrue(assumptionSupplier.getAsBoolean(), "assumption is not true"); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @throws TestAbortedException if the assumption is not {@code false} */ public static void assumeFalse(BooleanSupplier assumptionSupplier) throws TestAbortedException { assumeFalse(assumptionSupplier.getAsBoolean(), "assumption is not false"); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @param message the message to be included in the {@code TestAbortedException} * if the assumption is invalid * @throws TestAbortedException if the assumption is not {@code false} */ public static void assumeFalse(BooleanSupplier assumptionSupplier, String message) throws TestAbortedException { assumeFalse(assumptionSupplier.getAsBoolean(), message); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @param messageSupplier the supplier of the message to be included in * the {@code TestAbortedException} if the assumption is invalid * @throws TestAbortedException if the assumption is not {@code true} */ public static void assumeTrue(BooleanSupplier assumptionSupplier, Supplier<String> messageSupplier) throws TestAbortedException { assumeTrue(assumptionSupplier.getAsBoolean(), messageSupplier); }
/** * Validate the given assumption. * * @param assumptionSupplier the supplier of the assumption to validate * @param messageSupplier the supplier of the message to be included in * the {@code TestAbortedException} if the assumption is invalid * @throws TestAbortedException if the assumption is not {@code false} */ public static void assumeFalse(BooleanSupplier assumptionSupplier, Supplier<String> messageSupplier) throws TestAbortedException { assumeFalse(assumptionSupplier.getAsBoolean(), messageSupplier); }
private StepVerifier.Assertions satisfies(BooleanSupplier check, Supplier<String> message) { if (!check.getAsBoolean()) { throw errorFormatter.assertionError(message.get()); } return this; }