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);
}
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);
}
Aggregations