use of com.tvd12.ezyfoxserver.request.EzySimpleRequestAppRequest in project ezyfox-server by youngmonkeys.
the class EzyRequestAppControllerTest method testHasNotAccessed.
@Test
public void testHasNotAccessed() {
EzyArray data = EzyEntityArrays.newArray(1, EzyEntityArrays.newArray());
EzyRequestAppController controller = new EzyRequestAppController();
MyTestUser user = new MyTestUser();
user.setName("dungtv1");
user.addSession(session);
EzySimpleRequestAppRequest request = new EzySimpleRequestAppRequest();
request.deserializeParams(data);
request.setUser(user);
request.setSession(session);
EzyServerContext ctx = newServerContext();
controller.handle(ctx, request);
}
use of com.tvd12.ezyfoxserver.request.EzySimpleRequestAppRequest in project ezyfox-server by youngmonkeys.
the class EzyRequestAppControllerTest method test.
@Test
public void test() {
EzyArray data = EzyEntityArrays.newArray(1, EzyEntityArrays.newArray());
EzyRequestAppController controller = new EzyRequestAppController();
EzySimpleRequestAppRequest request = new EzySimpleRequestAppRequest();
request.deserializeParams(data);
request.setUser(user);
request.setSession(session);
EzyServerContext ctx = newServerContext();
controller.handle(ctx, request);
}
use of com.tvd12.ezyfoxserver.request.EzySimpleRequestAppRequest in project ezyfox-server by youngmonkeys.
the class EzySimpleRequestPluginRequestTest method test.
@Test
public void test() {
EzySimpleRequestAppRequest request = new EzySimpleRequestAppRequest();
request.deserializeParams(EzyEntityFactory.newArrayBuilder().append(1).append(EzyEntityFactory.newArrayBuilder()).build());
request.release();
}
use of com.tvd12.ezyfoxserver.request.EzySimpleRequestAppRequest 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.request.EzySimpleRequestAppRequest 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