Search in sources :

Example 1 with PollStatement

use of com.eclipsesource.restfuse.internal.poll.PollStatement in project restfuse by eclipsesource.

the class HttpTestStatement method doEvaluate.

private void doEvaluate() throws Throwable {
    Statement delegate = new BasicStatement(base, this);
    if (needsCallback()) {
        delegate = new CallbackStatement(base, this, description, target);
    } else if (needsPoll()) {
        delegate = new PollStatement(base, this, description, target);
    }
    delegate.evaluate();
}
Also used : Statement(org.junit.runners.model.Statement) PollStatement(com.eclipsesource.restfuse.internal.poll.PollStatement) CallbackStatement(com.eclipsesource.restfuse.internal.callback.CallbackStatement) PollStatement(com.eclipsesource.restfuse.internal.poll.PollStatement) CallbackStatement(com.eclipsesource.restfuse.internal.callback.CallbackStatement)

Aggregations

CallbackStatement (com.eclipsesource.restfuse.internal.callback.CallbackStatement)1 PollStatement (com.eclipsesource.restfuse.internal.poll.PollStatement)1 Statement (org.junit.runners.model.Statement)1