Package org.encuestame.persistence.domain.tweetpoll

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


  /**
   * Test {@link TweetPollSwitch}
   */
  @Test
  public void testTweetPollSwitch() {
    final TweetPollSwitch tpollSwitch = new TweetPollSwitch();
    QuestionAnswer qAnswers = createQuestionAnswer("", this.initQuestion,
        "HxjG823Dm");
    tpollSwitch.setAnswers(qAnswers);
    tpollSwitch.setCodeTweet("cod9kd");
    tpollSwitch.setDateUpdated(new Date());
    tpollSwitch.setRelativeUrl("http://encuestame.org");
    tpollSwitch.setShortUrl("http://enme.gl");
    //tpollSwitch.setSwitchId(2L);
    tpollSwitch.setTweetPoll(this.initTweetPoll);
    getSurveyDaoImp().saveOrUpdate(tpollSwitch);
    assertNotNull(tpollSwitch.getAnswers());
    assertNotNull(tpollSwitch.getDateUpdated());
    assertNotNull(tpollSwitch.getCodeTweet());
    assertNotNull(tpollSwitch.getRelativeUrl());
    assertNotNull(tpollSwitch.getShortUrl());
    assertNotNull(tpollSwitch.getSwitchId());
    assertNotNull(tpollSwitch.getTweetPoll());
  }
View Full Code Here


    /**
     * Test retrieveTweetsPollSwitch.
     */
    @Test
    public void testRetrieveTweetsPollSwitch() {
        final TweetPollSwitch pollSwitch = getTweetPoll()
                .retrieveTweetsPollSwitch(this.pollSwitch1.getCodeTweet());
        assertNotNull(pollSwitch);
    }
View Full Code Here

        HashTag htCitizenShip = createHashTag("citizenship");
        myTweetPoll.getHashTags().add(htCitizen);
        myTweetPoll.getHashTags().add(htCitizenShip);
        getTweetPoll().saveOrUpdate(myTweetPoll);

        TweetPollSwitch pollSwitchAmerica = createTweetPollSwitch(qaAmerica,
                myTweetPoll);
        TweetPollSwitch pollSwitchEurope = createTweetPollSwitch(qaEurope,
                myTweetPoll);

        final Calendar pollingDate = Calendar.getInstance();
        pollingDate.add(Calendar.MONTH, -1);
View Full Code Here

      */
     public TweetPollSwitch createTweetPollSwitch(
             final TweetPoll tweetPoll,
             final QuestionAnswer answers,
             final String codeTweet) {
         final TweetPollSwitch tweetPollSwitch = new TweetPollSwitch();
         tweetPollSwitch.setAnswers(answers);
         tweetPollSwitch.setCodeTweet(codeTweet);
         tweetPollSwitch.setTweetPoll(tweetPoll);
        return tweetPollSwitch;

     }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.tweetpoll.TweetPollSwitch

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.