Package org.encuestame.utils.web

Examples of org.encuestame.utils.web.UnitLists


    /**
     * Test {@link UnitLists}.
     */
    @Test
    public void testUnitLists(){
        final UnitLists emailLists = new UnitLists();
        emailLists.setCreatedAt(new Date());
        emailLists.setListName("my email Lists");
        emailLists.setUserId(1L);
        emailLists.setId(1L);
        assertNotNull(emailLists);
        assertNotNull(emailLists.getId());
        assertNotNull(emailLists.getListName());
        assertNotNull(emailLists.getCreatedAt());
        assertNotNull(emailLists.getUserId());
    }
View Full Code Here


     public UnitLists createUnitLists(
             final Date createdAt,
             final String listName,
             final Long listId,
             final Long userId){
         final UnitLists unitLists = new UnitLists();
         unitLists.setCreatedAt(createdAt);
         unitLists.setId(listId);
         unitLists.setListName(listName);
         unitLists.setUserId(userId);
         return unitLists;
     }
View Full Code Here

     * Test publish poll by email list.
     */
    @Category(InternetTest.class)
   // @Test(timeout=80000)
    public void testPublicPollByEmailList(){
        final UnitLists emailUnitList = createUnitEmailList(this.emailList.getIdList(),
                        new Date(), this.emailList.getListName(), this.userAccount.getUid());
         pollService.publicPollByList(this.poll, emailUnitList);
         assertEquals(1, 1);
    }
View Full Code Here

     * @param twitterAccounts
     * @return
     */
    public static final UnitLists convertEmailListtoToBean(
            final EmailList emailLists) {
        final UnitLists emailListsBean = new UnitLists();
        emailListsBean.setCreatedAt(emailLists.getCreatedAt());
        emailListsBean.setId(emailLists.getIdList());
        emailListsBean.setListName(emailLists.getListName());
        emailListsBean.setUserId(emailLists.getUsuarioEmail().getUid());
        return emailListsBean;
    }
View Full Code Here

            final Long emailListId,
            final Date createdAt,
            final String listName,
            final Long userId)
     {
         final UnitLists emailList = new UnitLists();
         emailList.setId(emailListId);
         emailList.setCreatedAt(createdAt);
         emailList.setListName(listName);
         emailList.setUserId(userId);

         return emailList;
     }
View Full Code Here

TOP

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

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.