Package com.simpletwitter.service

Source Code of com.simpletwitter.service.TweetServiceTest

package com.simpletwitter.service;

import static org.junit.Assert.*;

import java.util.List;
import java.util.Set;

import org.junit.Test;

import com.simpletwitter.models.Tweet;
import com.simpletwitter.models.TwitterUser;

public class TweetServiceTest {

  @Test
  public void test() {
    TwitterUser user = TwitterUserService.getUser(3L);
    Set<TwitterUser> following = user.getFollowing();
    Set<Tweet> tweetStream = TweetService.getTweetStream(3L, following);
    for (Tweet tweet : tweetStream) {
      System.out.println(tweet.getTwitterUser().getObjId() + "date: "
          + tweet.getDateCreated());
    }
  }
}
TOP

Related Classes of com.simpletwitter.service.TweetServiceTest

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.