ref_send API 2.17
defensive programming in Java

org.ref_send.test
Class Logic

java.lang.Object
  extended by org.ref_send.test.Logic

public final class Logic
extends java.lang.Object

Test condition operations.


Method Summary
static Promise<?> join(Eventual _, java.lang.Object... tests)
          Fulfills a promise after each listed promise is fulfilled.
static
<T> Do<T,Promise<?>>
was(T expected)
          Creates a when block that compares against an expected value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

was

public static <T> Do<T,Promise<?>> was(T expected)
Creates a when block that compares against an expected value.

Type Parameters:
T - referent type
Parameters:
expected - expected value

join

public static Promise<?> join(Eventual _,
                              java.lang.Object... tests)
Fulfills a promise after each listed promise is fulfilled.

Parameters:
_ - eventual operator
tests - each promise to test
Returns:
promise that is fulfilled if each of the listed promises is fulfilled; otherwise, the promise is rejected

ref_send API 2.17
defensive programming in Java

Submit a bug or feature, or get help

Copyright 1998-2009 Waterken Inc. under the terms of the MIT X license.