Examples of TweetPollFolder


Examples of org.encuestame.persistence.domain.tweetpoll.TweetPollFolder

    final Question mySecondQuestion = createQuestion(
        "What is your favorite kind of song?",
        this.userAccount.getAccount());

    final TweetPollFolder tpFolder = createTweetPollFolder(
        "My Tp1111 folder", this.userAccount);

    final HashTag tag1 = createHashTag("romantic");
    final HashTag tag2 = createHashTag("suspense");
    final String tagName = tag1.getHashTag();
View Full Code Here

Examples of org.encuestame.persistence.domain.tweetpoll.TweetPollFolder

    @Test
    public void testTweetPoll() {
        final TweetPoll tweetPoll = new TweetPoll();

        final HashTag tag1 = createHashTag("education");
        final TweetPollFolder tpFolder = createTweetPollFolder("personal",
                initUser);

        tweetPoll.setAllowLiveResults(Boolean.TRUE);
        tweetPoll.setAllowRepatedVotes(Boolean.FALSE);
        tweetPoll.setCaptcha(Boolean.TRUE);
View Full Code Here

Examples of org.encuestame.persistence.domain.tweetpoll.TweetPollFolder

     * Test Get TweetPoll Folder by FolderId and User.
     */
    @Test
    public void testGetTweetPollFolderByIdandUser() {
        assertNotNull(this.tweetPollFolder);
        final TweetPollFolder tpf = getTweetPoll()
                .getTweetPollFolderByIdandUser(this.tweetPollFolder.getId(),
                        secondary.getAccount());
        assertEquals("Should be equals", this.tweetPollFolder.getId(),
                tpf.getId());
    }
View Full Code Here

Examples of org.encuestame.persistence.domain.tweetpoll.TweetPollFolder

     * Test Get TweetPoll Folder by folderId.
     */
    @Test
    public void testGetTweetPollFolderById() {
        assertNotNull(tweetPollFolder);
        final TweetPollFolder tpf = getTweetPoll().getTweetPollFolderById(
                this.tweetPollFolder.getId());
        assertNotNull(tpf);
    }
View Full Code Here

Examples of org.encuestame.persistence.domain.tweetpoll.TweetPollFolder

        final Question myFirstQuestion = createQuestion(
                "What is your favorite kind of movie?", secondary.getAccount());
        final Question mySecondQuestion = createQuestion(
                "What is your favorite kind of song?", secondary.getAccount());

        final TweetPollFolder tpFolder = createTweetPollFolder("My Tp1 folder", this.secondary);
        // FIRST TP
        final TweetPoll tweetPoll = createPublishedTweetPoll(
                this.secondary.getAccount(), myFirstQuestion,
                new Date());
        tweetPoll.setTweetPollFolder(tpFolder);
        getTweetPoll().saveOrUpdate(tweetPoll);

        getTweetPoll().delete(tweetPoll);
        final TweetPoll tp = getTweetPoll().getTweetPollById(
                tweetPoll.getTweetPollId());
        final Question quest = getQuestionDaoImp().retrieveQuestionById(
                myFirstQuestion.getQid());
        final Question quest2 = getQuestionDaoImp().retrieveQuestionById(
                mySecondQuestion.getQid());
        final List<TweetPoll> tpollsbyFolder = getTweetPoll()
                .retrieveTweetPollByFolder(this.secondary.getUid(),
                        tpFolder.getId());

        final TweetPollFolder folders = getTweetPoll().getTweetPollFolderById(
                tpFolder.getId());
     }
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.