Examples of TweetPollSwitch


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

        final TweetPoll tweetpoll2 = createPublishedTweetPoll(5L, question2,
                getSpringSecurityLoggedUserAccount());
        tweetpoll2.getHashTags().add(this.initHashTag);
        getTweetPoll().saveOrUpdate(initTweetPoll);

        final TweetPollSwitch tpSwichtMadrid = createTweetPollSwitch(answerMadrid, tweetpoll2);
        final TweetPollSwitch tpSwichtBarsa = createTweetPollSwitch(answerBarsa, tweetpoll2);

        createTweetPollResult(tpSwichtMadrid, "192.168.0.1");
        createTweetPollResult(tpSwichtBarsa, "192.168.0.4");

        updateDate = this.creationDate.minusMonths(3);
View Full Code Here

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

        final QuestionAnswer questionsAnswers2 = createQuestionAnswer("no", question, "7891012");

        final QuestionAnswer questionsAnswers3 = createQuestionAnswer("yes", question2, "11121314");
        final QuestionAnswer questionsAnswers4 = createQuestionAnswer("no", question2, "11121315");

        final TweetPollSwitch tpollSwitch1 = createTweetPollSwitch(questionsAnswers1, tp);
        final TweetPollSwitch tpollSwitch2 = createTweetPollSwitch(questionsAnswers2, tp);

        final TweetPollSwitch tpollSwitch3 = createTweetPollSwitch(questionsAnswers3, tp2);
        final TweetPollSwitch tpollSwitch4 = createTweetPollSwitch(questionsAnswers4, tp2);

        // TweetPoll 1 votes.
        createTweetPollResult(tpollSwitch1, "192.168.0.1");
        createTweetPollResult(tpollSwitch1, "192.168.0.2");
        createTweetPollResult(tpollSwitch2, "192.168.0.3");
View Full Code Here

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

        for (j = 0; j < 2; j++) {
            // Creating answers... - Select answers = "yes", "no", "maybe", "impossible", "never"
            final QuestionAnswer qAnswers = this.createRandomQuestionAnswer(j, question, answers);

            // Creating TweetPoll switch.
            TweetPollSwitch tpollSwitch = createTweetPollSwitch(qAnswers, myTweet);
            tpollSwitchList.add(tpollSwitch);
        }
        if(voteItem){
            this.voteTweetPollSwitch(EnMeUtils.ipGenerator(),
                    tpollSwitchList.get(1));
View Full Code Here

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

        final UserAccount secondary = createUserAccount("jhon-"+RandomStringUtils.randomAscii(4), createAccount());
        final Question question = createQuestion("who I am?", "");
        final QuestionAnswer questionsAnswers1 = createQuestionAnswer("yes", question, "12345");
        final QuestionAnswer questionsAnswers2 = createQuestionAnswer("no", question, "12346");
        final TweetPoll tweetPoll = createPublishedTweetPoll(secondary.getAccount(), question);
        final TweetPollSwitch pollSwitch1 = createTweetPollSwitch(questionsAnswers1, tweetPoll);
        final TweetPollSwitch pollSwitch2 = createTweetPollSwitch(questionsAnswers2, tweetPoll);
        createTweetPollResult(pollSwitch1, "192.168.0.1");
        createTweetPollResult(pollSwitch1, "192.168.0.2");
        createTweetPollResult(pollSwitch2, "192.168.0.3");
        createTweetPollResult(pollSwitch2, "192.168.0.4");
        //log.info("tw "+tweetPoll);
View Full Code Here

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

    final QuestionAnswerBean qAnswerBean = createAnswersBean("26354",
        "Yes", myQuestion.getQid());
    final QuestionAnswerBean qAnswerBean2 = createAnswersBean("26355",
        "No", myQuestion.getQid());

    final TweetPollSwitch pollSwitch = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);
    final TweetPollSwitch pollSwitch2 = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);

    tweetPollService.tweetPollVote(pollSwitch, ipVote, Calendar
        .getInstance().getTime());
    // tweetPollService.tweetPollVote(pollSwitch2, ipVote);
View Full Code Here

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

        "JDKSLD");
    final QuestionAnswer qB = createQuestionAnswer("string", question1,
        "JDKSELD");
    final QuestionAnswer qC = createQuestionAnswer("string", question1,
        "JDFSELD");
    final TweetPollSwitch tpswith = createTweetPollSwitch(qA, tp);
    final TweetPollSwitch tpswith2 = createTweetPollSwitch(qB, tp);
    final TweetPollSwitch tpswith3 = createTweetPollSwitch(qC, tp);
    List<TweetPollSwitch> tpSwitch = getTweetPollService()
        .getTweetPollSwitch(tp);
    assertEquals("Should be equals", 3, tpSwitch.size());
  }
View Full Code Here

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

        "JDKSLD");
    final QuestionAnswer qB = createQuestionAnswer("NO", question1,
        "JDKSSLD");
    final QuestionAnswer qC = createQuestionAnswer("NO", question1,
        "JDKSZLD");
    final TweetPollSwitch tps1 = createTweetPollSwitch(qA, tp);
    final TweetPollSwitch tps2 = createTweetPollSwitch(qB, tp);
    final TweetPollSwitch tps3 = createTweetPollSwitch(qC, tp);
    createTweetPollResult(tps1, "192.1.1.1");
    createTweetPollResult(tps2, "192.1.1.2");
    createTweetPollResult(tps2, "192.1.1.3");

    final Long totalTweetPollVotes = getTweetPollService()
View Full Code Here

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

    final QuestionAnswerBean qAnswerBean = createAnswersBean("26354",
        "Yes", myQuestion.getQid());
    final QuestionAnswerBean qAnswerBean2 = createAnswersBean("26355",
        "No", myQuestion.getQid());

    final TweetPollSwitch pollSwitch = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);
    final TweetPollSwitch pollSwitch2 = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);

    tweetPollService.tweetPollVote(pollSwitch, "192.1.1.1", Calendar
        .getInstance().getTime());
    tweetPollService.tweetPollVote(pollSwitch2, "192.1.1.2", Calendar
View Full Code Here

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

    final QuestionAnswerBean qAnswerBean2 = createAnswersBean("26355",
        "No", question1.getQid());

    final List<QuestionAnswer> qAnswer = getQuestionDaoImp()
        .getAnswersByQuestionId(question1.getQid());
    final TweetPollSwitch pollSwitch = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);
    final TweetPollSwitch pollSwitch2 = tweetPollService
        .createTweetPollQuestionAnswer(qAnswerBean, myTweetPoll, null);

  }
View Full Code Here

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

        myFirstQuestion, "12346666");
    final QuestionAnswer questAns3 = createQuestionAnswer("no",
        myFirstQuestion, "123466667");

    // Tweetpoll switch
    final TweetPollSwitch tps1 = createTweetPollSwitch(questAns1,
        tweetPoll1);
    final TweetPollSwitch tps2 = createTweetPollSwitch(questAns2,
        tweetPoll1);

    // TweetPoll Result
    createTweetPollResult(tps1, "192.168.0.1");
    createTweetPollResult(tps1, "192.168.0.2");
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.