Search in sources :

Example 1 with EzySimpleStreamingRequest

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);
}
Also used : EzySimpleStreamingRequest(com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest) EzyServerContext(com.tvd12.ezyfoxserver.context.EzyServerContext) EzyRawBytesInterceptor(com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor) EzyStreamingRequest(com.tvd12.ezyfoxserver.request.EzyStreamingRequest) Test(org.testng.annotations.Test)

Example 2 with EzySimpleStreamingRequest

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);
}
Also used : EzySimpleStreamingRequest(com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest) EzySimpleUser(com.tvd12.ezyfoxserver.entity.EzySimpleUser) EzyServerContext(com.tvd12.ezyfoxserver.context.EzyServerContext) EzyRawBytesInterceptor(com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor) Test(org.testng.annotations.Test)

Example 3 with EzySimpleStreamingRequest

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);
}
Also used : EzySimpleStreamingRequest(com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest) EzyZoneContext(com.tvd12.ezyfoxserver.context.EzyZoneContext) EzySimpleStreamingController(com.tvd12.ezyfoxserver.controller.EzySimpleStreamingController) BaseTest(com.tvd12.test.base.BaseTest) Test(org.testng.annotations.Test)

Example 4 with EzySimpleStreamingRequest

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;
}
Also used : EzySimpleStreamingRequest(com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest)

Aggregations

EzySimpleStreamingRequest (com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest)4 Test (org.testng.annotations.Test)3 EzyServerContext (com.tvd12.ezyfoxserver.context.EzyServerContext)2 EzyRawBytesInterceptor (com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor)2 EzyZoneContext (com.tvd12.ezyfoxserver.context.EzyZoneContext)1 EzySimpleStreamingController (com.tvd12.ezyfoxserver.controller.EzySimpleStreamingController)1 EzySimpleUser (com.tvd12.ezyfoxserver.entity.EzySimpleUser)1 EzyStreamingRequest (com.tvd12.ezyfoxserver.request.EzyStreamingRequest)1 BaseTest (com.tvd12.test.base.BaseTest)1