use of com.tvd12.ezyfoxserver.request.EzySimpleExitAppRequest in project ezyfox-server by youngmonkeys.
the class EzyExitAppControllerTest method test.
@Test
public void test() {
EzyExitAppController controller = new EzyExitAppController();
EzyServerContext serverContext = mock(EzyServerContext.class);
EzyAppContext appContext = mock(EzyAppContext.class);
EzyApplication app = mock(EzyApplication.class);
when(appContext.getApp()).thenReturn(app);
EzyAppUserManager userManager = mock(EzyAppUserManager.class);
when(app.getUserManager()).thenReturn(userManager);
when(serverContext.getAppContext(1)).thenReturn(appContext);
EzySimpleExitAppRequest request = new EzySimpleExitAppRequest();
request.deserializeParams(EzyEntityFactory.newArrayBuilder().append(1).build());
controller.handle(serverContext, request);
}
Aggregations