use of com.eclipsesource.restfuse.internal.callback.CallbackStatement in project restfuse by eclipsesource.
the class Poll_Test method setUp.
@BeforeClass
public static void setUp() throws Exception {
server = new Server(10044);
ServletContextHandler context = new ServletContextHandler(server, "/", ServletContextHandler.SESSIONS);
CallbackStatement statement = mock(CallbackStatement.class);
CallbackSerlvet servlet = new CallbackSerlvet(new TestResource(), statement);
context.addServlet(new ServletHolder(servlet), "/");
server.start();
int timer = 0;
while (!server.isRunning() && timer < TIMEOUT) {
Thread.sleep(1000);
timer++;
}
}
use of com.eclipsesource.restfuse.internal.callback.CallbackStatement 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();
}
Aggregations