Package org.encuestame.persistence.domain.security

Examples of org.encuestame.persistence.domain.security.Account


    /**
     *
     */
     @Test
     public void testLocationFolder(){
         final Account account = createAccount();
         final GeoPointFolder geoPointFolder = new GeoPointFolder();
    final GeoPointFolder geoLocationFolder = createDefaultGeoPointFolder(
        " Polygon folder", this.initAccount);
         geoPointFolder.setFolderType(GeoPointFolderType.GROUPING);
         geoPointFolder.setFolderName("test folder");
View Full Code Here


     /** Test item vote. **/
     @Test
     public void testRate(){
         final Question question = createQuestion("Who will win the Champions League match today?", "");
         final Account account = createAccount();
         final UserAccount user = createUserAccount("carlos", account);
         final TweetPoll tpoll = createPublishedTweetPoll(account, question);
         final Comment comment = createDefaultTweetPollComment("my first comment", tpoll, user);
         final AccessRate rateItem = new AccessRate();
         rateItem.setRate(Boolean.TRUE);
View Full Code Here

    /**
     * Test find all {@link Poll}.
     */
    @Test
    public void testFindAllPollByAccount() {
        final Account acc2 = createUser("testEncuesta1", "testEncuesta1233");
        final Account acc3 = createUser("testEncuesta3", "testEncuesta1235");

        final UserAccount userAccount1 = createUserAccount("paola", acc2);
        final UserAccount userAccount2 = createUserAccount("carlos", acc2);
        final UserAccount userAccount3 = createUserAccount("isabella", acc3);
        createDefaultPoll(question, userAccount1);
View Full Code Here

    /**
     * Test Security User.
     */
    @Test
    public void testSecUser(){
        final Account user = new Account();
        getAccountDao().saveOrUpdate(user);
        assertNotNull(user.getUid());
    }
View Full Code Here

    /**
     * Test Get User by Id.
     */
    @Test
    public void testGetUserById(){
        final Account userAccount = getAccountDao().getUserById(this.account.getUid());
         assertEquals("Should be equals", this.account.getUid(), userAccount.getUid());
     }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.security.Account

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.