Package org.jtalks.jcommune.web.listeners

Examples of org.jtalks.jcommune.web.listeners.SessionStatisticListener


        SessionRegistry sessionRegistry = mock(SessionRegistry.class);
        users = Collections.nCopies(userCount , (Object) new JCUser("","",""));
        when(sessionRegistry.getAllPrincipals()).thenReturn(users);

        SessionStatisticListener listener = mock(SessionStatisticListener.class);
        when(listener.getTotalActiveSessions()).thenReturn(sessionCount);

        forumStaticsProvider = new ForumStatisticsProvider(sessionRegistry, listener, statisticsService);
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.web.listeners.SessionStatisticListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.