use of net.jforum.cache.DefaultCacheEngine in project jforum2 by rafaelsteil.
the class OnlineUsersTest method setUp.
protected void setUp() throws Exception {
new SessionFacade().setCacheEngine(new DefaultCacheEngine());
RequestContext requestContext = new WebRequestContext(new FakeHttpRequest());
ResponseContext responseContext = new WebResponseContext(new FakeHttpResponse());
ForumContext forumContext = new JForumContext(requestContext.getContextPath(), SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION), requestContext, responseContext, false);
JForumExecutionContext ex = JForumExecutionContext.get();
ex.setForumContext(forumContext);
JForumExecutionContext.set(ex);
SystemGlobals.setValue(ConfigKeys.ANONYMOUS_USER_ID, Integer.toString(ANONYMOUS));
}
Aggregations