Search in sources :

Example 1 with EzyRawBytesInterceptor

use of com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor 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 EzyRawBytesInterceptor

use of com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor 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)

Aggregations

EzyServerContext (com.tvd12.ezyfoxserver.context.EzyServerContext)2 EzyRawBytesInterceptor (com.tvd12.ezyfoxserver.interceptor.EzyRawBytesInterceptor)2 EzySimpleStreamingRequest (com.tvd12.ezyfoxserver.request.EzySimpleStreamingRequest)2 Test (org.testng.annotations.Test)2 EzySimpleUser (com.tvd12.ezyfoxserver.entity.EzySimpleUser)1 EzyStreamingRequest (com.tvd12.ezyfoxserver.request.EzyStreamingRequest)1