Search in sources :

Example 1 with HttpTestStatement

use of com.eclipsesource.restfuse.internal.HttpTestStatement in project restfuse by eclipsesource.

the class Destination method apply.

@Override
public /**
   * <p><b>Not meant for public use. This method will be invoked by the JUnit framework.</b></p>
   */
Statement apply(Statement base, Description description) {
    Statement result;
    if (hasAnnotation(description)) {
        requestStatement = new HttpTestStatement(base, description, testObject, baseUrl, proxyHost, proxyPort, context);
        result = requestStatement;
    } else {
        result = base;
    }
    return result;
}
Also used : HttpTestStatement(com.eclipsesource.restfuse.internal.HttpTestStatement) Statement(org.junit.runners.model.Statement) HttpTestStatement(com.eclipsesource.restfuse.internal.HttpTestStatement)

Aggregations

HttpTestStatement (com.eclipsesource.restfuse.internal.HttpTestStatement)1 Statement (org.junit.runners.model.Statement)1