use of com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest in project ezyfox-server by youngmonkeys.
the class EzyRawBytesInterceptorTest method test2.
@Test(expectedExceptions = EzyNotAuthorizedException.class)
public void test2() throws Exception {
EzyRawBytesInterceptor interceptor = new EzyRawBytesInterceptor();
EzyServerContext serverContext = mock(EzyServerContext.class);
EzyStreamingRequest request = new EzySimpleStreamingRequest();
interceptor.intercept(serverContext, request);
}
use of com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest in project ezyfox-server by youngmonkeys.
the class EzyRawBytesInterceptorTest method test.
@Test
public void test() throws Exception {
EzyRawBytesInterceptor interceptor = new EzyRawBytesInterceptor();
EzyServerContext serverContext = mock(EzyServerContext.class);
EzySimpleStreamingRequest request = new EzySimpleStreamingRequest();
request.setUser(new EzySimpleUser());
interceptor.intercept(serverContext, request);
}
use of com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest in project ezyfox-server by youngmonkeys.
the class EzySimpleStreamingControllerTest method test.
@Test
public void test() {
EzySimpleStreamingController controller = new EzySimpleStreamingController();
EzyZoneContext zoneContext = mock(EzyZoneContext.class);
EzySimpleStreamingRequest request = new EzySimpleStreamingRequest();
controller.handle(zoneContext, request);
}
use of com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest in project ezyfox-server by youngmonkeys.
the class EzyUserDataHandler method newStreamingRequest.
protected EzyStreamingRequest newStreamingRequest(byte[] bytes) {
EzySimpleStreamingRequest request = new EzySimpleStreamingRequest();
request.setUser(user);
request.setSession(session);
request.setBytes(bytes);
return request;
}
Aggregations