use of com.tvd12.ezyfoxserver.interceptor.EzyServerUserInterceptor in project ezyfox-server by youngmonkeys.
the class EzyServerUserInterceptorTest method test.
@Test(expectedExceptions = { EzyNotAuthorizedException.class })
public void test() throws Exception {
EzyServerContext context = newServerContext();
EzyServerUserInterceptor interceptor = new EzyServerUserInterceptor();
EzyRequestAppRequest request = new EzySimpleRequestAppRequest();
interceptor.intercept(context, request);
}
use of com.tvd12.ezyfoxserver.interceptor.EzyServerUserInterceptor in project ezyfox-server by youngmonkeys.
the class EzyServerUserInterceptorTest method test1.
@Test
public void test1() throws Exception {
EzyServerContext context = newServerContext();
EzyServerUserInterceptor interceptor = new EzyServerUserInterceptor();
EzySimpleRequestAppRequest request = new EzySimpleRequestAppRequest();
request.setUser(new MyTestUser());
interceptor.intercept(context, request);
}
Aggregations