Package org.encuestame.persistence.domain.security

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


    createTweetPollResult(tps1, "192.168.0.1");
    createTweetPollResult(tps1, "192.168.0.2");
    createTweetPollResult(tps2, "192.168.0.3");

    // Social Accounts & Providers
    final SocialAccount socialAccount = createDefaultSettedSocialAccount(this.userAccount);

    final List<SocialProvider> providers = new ArrayList<SocialProvider>();
    providers.add(SocialProvider.FACEBOOK);
    providers.add(SocialProvider.LINKEDIN);
View Full Code Here


    final TweetPoll tweetPoll2 = createPublishedTweetPoll(
        this.userAccount.getAccount(), this.question, new Date());

    // SocialAccount
    final SocialAccount socialAcc = createDefaultSettedSocialAccount(this.userAccount);

    // Scheduled 1
    final Schedule schedule1 = createTweetpollScheduleDefault(tweetPoll1,
        this.initDate.minusDays(2).toDate(), socialAcc, Status.ACTIVE,
        TypeSearchResult.TWEETPOLL, this.tweetText);
View Full Code Here

    final Survey survey = createDefaultSurvey(this.user, " ",
        this.initDate.toDate());

    // SocialAccount
    final SocialAccount socialAcc = createDefaultSettedSocialAccount(this.userAccount);

    final TweetPollSavedPublishedStatus tpSaved = createTweetPollSavedPublishedStatus(
        tweetPoll1, "1245", socialAcc, this.tweetText);

    final TweetPollSavedPublishedStatus tpSaved2 = createTweetPollSavedPublishedStatus(
View Full Code Here

   @Test
    public void testRetrieveTweetsByQuestionName()
            throws NoSuchAlgorithmException, UnsupportedEncodingException {
        assertNotNull(this.secondary);
        assertNotNull(tweetPoll);
        final SocialAccount socialAccount = createDefaultSettedSocialAccount(this.secondary);
        final Long userId = this.secondary.getAccount().getUid();
        final String keyword = "What";
        // Completed - Favourites - Scheduled - Published
        DateTime creationDate = new DateTime();
        creationDate = creationDate.minusHours(3);
View Full Code Here

    public void testGetTotalSocialAccountsPublished() {
        final TweetPoll tp1 = createPublishedTweetPoll(
                this.secondary.getAccount(),
                createQuestion("question1", secondary.getAccount()), new Date());
        assertNotNull(tp1);
        final SocialAccount socialAccount = createDefaultSettedSocialAccount(this.secondary);
        assertNotNull(socialAccount);
        final String tweetContent = "Tweet content text";
        final TweetPollSavedPublishedStatus tpSaved = createTweetPollSavedPublishedStatus(
                tp1, " ", socialAccount, tweetContent);
        tpSaved.setApiType(SocialProvider.TWITTER);
View Full Code Here

                this.secondary.getAccount(),
                createQuestion("What is your favorite pastime?",
                        secondary.getAccount()), new Date());
        assertNotNull(tweetPoll);

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

                this.secondary.getAccount(),
                createQuestion("What is your favorite pastime?",
                        secondary.getAccount()), myCalendarDate.getTime());
        assertNotNull(tweetPoll);

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

                this.secondary.getAccount(),
                createQuestion("What is your favorite pastime 11?",
                        secondary.getAccount()), new Date());
        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);
View Full Code Here

     * Test to retrieve all scheduled items.
     */
    @Test
    public void testScheduledItems(){

    final SocialAccount socialAcc2 = createDefaultSettedSocialAccount(this.secondary);

    // Create Tweetpoll
    final TweetPoll tpoll = createDefaultTweetPollPublicated(Boolean.TRUE,
            Boolean.TRUE, Boolean.TRUE, this.secondary, this.question,
            this.initDate.toDate());
View Full Code Here

    /**
     * Test Get Twitter Account.
     */
    @Test
    public void testGetTwitterAccount(){
        final SocialAccount social = getAccountDao().getSocialAccountById(this.socialAccount.getId());
        assertEquals("Should be equals", this.socialAccount.getId(), social.getId());
    }
View Full Code Here

TOP

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

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.