Beispiel #1
0
 @Test
 public void testUserFollowingProperty() throws InterruptedException {
   // test the user property
   Twitter tw = TwitterTest.newTestTwitter();
   {
     tw.follow("stephenfry");
     User sf = tw.users().show("stephenfry");
     assert sf.isFollowedByYou();
     assert sf.isFollowingYou() == null || !sf.isFollowingYou();
   }
   {
     User dan = tw.users().show("winterstein");
     assert dan.isFollowingYou() == null || dan.isFollowingYou();
   }
   {
     List<User> followers = tw.getFollowers();
     List<User> fBy = tw.getFriends();
     System.out.println(fBy);
   }
 }