use of org.jboss.resteasy.spi.ResteasyAsynchronousContext in project resteasy by resteasy.
the class SseBroadcasterTest method before.
@Before
public void before() {
HttpRequest request = mock(HttpRequest.class);
ResteasyAsynchronousContext resteasyAsynchronousContext = mock(ResteasyAsynchronousContext.class);
doReturn(resteasyAsynchronousContext).when(request).getAsyncContext();
// prevent NPE in SseEventOutputImpl ctr
ResteasyContext.pushContext(org.jboss.resteasy.spi.HttpRequest.class, request);
}
Aggregations