UserTimeline extends BaseTimeline implements Timeline<Tweet> { Call<List<Tweet>> createUserTimelineRequest(final Long sinceId, final Long maxId) { return twitterCore.getApiClient().getStatusesService().userTimeline(userId, screenName, maxItemsPerRequest, sinceId, maxId, false, !includeReplies, null, includeRetweets); } UserTimeline(TwitterCore twitterCore, Long userId, String screenName,
                 Integer maxItemsPerRequest, Boolean includeReplies, Boolean includeRetweets); @Override void next(Long sinceId, Callback<TimelineResult<Tweet>> cb); @Override void previous(Long maxId, Callback<TimelineResult<Tweet>> cb);  }
@Test public void testCreateUserTimelineRequest() { final UserTimeline timeline = new UserTimeline(twitterCore, TestFixtures.TEST_USER.id, TestFixtures.TEST_USER.screenName, TEST_ITEMS_PER_REQUEST, null, null); timeline.createUserTimelineRequest(TEST_SINCE_ID, TEST_MAX_ID); verify(twitterCore.getApiClient().getStatusesService()) .userTimeline(eq(TestFixtures.TEST_USER.id), eq(TestFixtures.TEST_USER.screenName), eq(TEST_ITEMS_PER_REQUEST), eq(TEST_SINCE_ID), eq(TEST_MAX_ID), eq(false), eq(true), isNull(Boolean.class), isNull(Boolean.class)); }