Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.UnitSessionUserBean


    /**
     * Test {@link UnitSessionUserBean}.
     */
    @Test
    public void testUnitSessionUserBean(){
        final UnitSessionUserBean sessionUserBean = new UnitSessionUserBean();
        sessionUserBean.setConsumerTwitterKey("12345");
        sessionUserBean.setConsumerTwitterSecret("secret");
        sessionUserBean.setTwitterAccount("twitter");
        sessionUserBean.setTwitterPassword("password");
        sessionUserBean.setTwitterTwitterPing(12345);
        sessionUserBean.setUserSessionId(1L);
        assertNotNull(sessionUserBean.getConsumerTwitterKey());
        assertNotNull(sessionUserBean.getConsumerTwitterSecret());
        assertNotNull(sessionUserBean.getTwitterAccount());
        assertNotNull(sessionUserBean.getTwitterPassword());
        assertNotNull(sessionUserBean.getTwitterTwitterPing());
        assertNotNull(sessionUserBean.getUserSessionId());
    }
View Full Code Here


     *            user
     * @return {@link UnitSessionUserBean}
     */
    public static final UnitSessionUserBean convertUserSessionToUserBean(
            final Account user) {
        final UnitSessionUserBean sessionUserBean = new UnitSessionUserBean();
        sessionUserBean.setUserSessionId(user.getUid());
        /*
         * sessionUserBean.setConsumerTwitterKey(user.getConsumerKey());
         * sessionUserBean.setConsumerTwitterSecret(user.getConsumerSecret());
         * sessionUserBean.setTwitterPassword(user.getTwitterPassword());
         * sessionUserBean.setTwitterAccount(user.getTwitterAccount());
 
View Full Code Here

TOP

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

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.