Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.ProfileRatedTopBean


    /**
     * Test {@link ProfileRatedTopBean}.
     */
    @Test
    public void testProfileRatedTopBean() {
        final ProfileRatedTopBean profileRatedTop = new ProfileRatedTopBean();
        profileRatedTop.setCurrentPos(0);
        profileRatedTop.setDisLikeVotes(1L);
        profileRatedTop.setLastPos(3);
        profileRatedTop.setLikeVotes(2L);
        profileRatedTop.setTopValue(5L);
        profileRatedTop.setTotalbyItems(15L);
        profileRatedTop.setUrl("url");
        profileRatedTop.setUsername("admin");

        assertNotNull(profileRatedTop.getCurrentPos());
        assertNotNull(profileRatedTop.getDisLikeVotes());
        assertNotNull(profileRatedTop.getLastPos());
        assertNotNull(profileRatedTop.getLikeVotes());
        assertNotNull(profileRatedTop.getTopValue());
        assertNotNull(profileRatedTop.getTotalbyItems());
        assertNotNull(profileRatedTop.getUrl());
        assertNotNull(profileRatedTop.getUsername());
    }
View Full Code Here


     * @return
     */
    private ProfileRatedTopBean createProfileTopBean(final Integer currentPos,
            final Long dislike, final Long likeVotes, final Integer lastPos,
            final Long topValue, final Long total, final String url, final String username) {
        ProfileRatedTopBean profile = new ProfileRatedTopBean();
        profile.setCurrentPos(currentPos);
        profile.setDisLikeVotes(dislike);
        profile.setLastPos(lastPos);
        profile.setLikeVotes(likeVotes);
        profile.setTopValue(topValue);
        profile.setTotalbyItems(total);
        profile.setUrl(url);
        profile.setUsername(username);

        return profile;

    }
View Full Code Here

     * @param user
     * @return
     */
    public static final ProfileRatedTopBean convertUserAccountToProfileRated(
            final UserAccount user) {
        final ProfileRatedTopBean profileTop = new ProfileRatedTopBean();
        profileTop.setUsername(user.getUsername());
        profileTop.setTopValue(null);
        return profileTop;
    }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.web.ProfileRatedTopBean

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.