Examples of TweetPollSavedPublishedStatus


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

        assertNotNull(tweetPoll);

        final SocialAccount socialAccount = createDefaultSettedSocialAccount(this.secondary);
        assertNotNull(socialAccount);
        final String tweetContent = "Tweet content text";
        final TweetPollSavedPublishedStatus tpSaved = createTweetPollSavedPublishedStatus(
                tweetPoll, " ", socialAccount, tweetContent);

        tpSaved.setApiType(SocialProvider.TWITTER);
        tpSaved.setPublicationDateTweet(myCalendarDate.getTime());
        getTweetPoll().saveOrUpdate(tpSaved);
        assertNotNull(tpSaved);

        myCalendarDate.add(Calendar.MONTH, -2);
        final TweetPollSavedPublishedStatus tpSaved2 = createTweetPollSavedPublishedStatus(
                tweetPoll, " ", socialAccount, tweetContent);
        tpSaved2.setApiType(SocialProvider.FACEBOOK);
        tpSaved2.setPublicationDateTweet(myCalendarDate.getTime());
        getTweetPoll().saveOrUpdate(tpSaved2);
        assertNotNull(tpSaved2);
        final List<TweetPollSavedPublishedStatus> tweetPollSocialLinks = getTweetPoll().getSocialLinksByTypeAndDateRange(tweetPoll, null, null,
                TypeSearchResult.TWEETPOLL);
        Assert.assertEquals("Should be", 2, tweetPollSocialLinks.size());
View Full Code Here

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

        assertNotNull(tweetPoll);

        final SocialAccount socialAccount = createDefaultSettedSocialAccount(this.secondary);
        assertNotNull(socialAccount);
        final String tweetContent = "Tweet content text 22";
        final TweetPollSavedPublishedStatus tpSaved = createTweetPollSavedPublishedStatus(
                tweetPoll, " ", socialAccount, tweetContent);

        tpSaved.setApiType(SocialProvider.TWITTER);
        tpSaved.setPublicationDateTweet(new Date());
        getTweetPoll().saveOrUpdate(tpSaved);
        assertNotNull(tpSaved);
        // /////
        final UserAccount userAccount = createUserAccount("johannes", createAccount());
        final SocialAccount socialAccount2 = createDefaultSettedSocialAccount(userAccount);

        final TweetPollSavedPublishedStatus tpSaved12 = createTweetPollSavedPublishedStatus(
                tweetPoll, " ", socialAccount2, "TCPTEN3");

        tpSaved12.setApiType(SocialProvider.FACEBOOK);
        tpSaved12.setPublicationDateTweet(new Date());
        getTweetPoll().saveOrUpdate(tpSaved);
        assertNotNull(tpSaved12);

        final TweetPollSavedPublishedStatus tpSaved2 = createTweetPollSavedPublishedStatus(
                tweetPoll, " ", socialAccount, tweetContent);
        tpSaved2.setApiType(SocialProvider.FACEBOOK);
        tpSaved2.setPublicationDateTweet(new Date());
        getTweetPoll().saveOrUpdate(tpSaved2);
        assertNotNull(tpSaved2);

        // Enum list providers to search tweetpoll published
        List<SocialProvider> enums = new ArrayList<SocialProvider>();
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.