use of com.tvd12.ezyfox.util.EzyInitable in project ezyfox-server by youngmonkeys.
the class BaseCoreTest method newServerContext.
protected EzyServerContext newServerContext() {
EzyServerContext serverContext = newServerContextBuilder().build();
for (EzyZoneContext zoneContext : serverContext.getZoneContexts()) {
((EzyInitable) zoneContext).init();
}
for (EzyAppContext appContext : serverContext.getAppContexts()) {
((EzyInitable) appContext).init();
}
EzySimpleServerContext ctx = (EzySimpleServerContext) serverContext;
EzySimpleServer server = (EzySimpleServer) ctx.getServer();
server.setResponseApi(mock(EzyResponseApi.class));
return ctx;
}
Aggregations