Examples of WidgetStatistics


Examples of org.apache.rave.portal.model.util.WidgetStatistics

        expect(mongoOperations.findById(widget_id, WidgetRatingsMapReduceResult.class, WIDGET_RATINGS)).andReturn(null);
        expect(mongoOperations.findById(widget_id, WidgetUsersMapReduceResult.class, WIDGET_USERS)).andReturn(usersResult);
        replay(mongoOperations);

        WidgetStatistics result = aggregator.getWidgetStatistics(widget_id, "21L");

        assertThat(result.getTotalDislike(), is(equalTo(0)));
        assertThat(result.getTotalLike(), is(equalTo(0)));
        assertThat(result.getUserRating(), is(equalTo(-1)));
        assertThat(result.getTotalUserCount(), is(equalTo(2)));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.