favoriteStatuses = timelineService.getFavoritesline();
assertEquals(0, favoriteStatuses.size());
Iterator<StatusDTO> iterator = timelineStatuses.iterator();
for (int i = 9; i >= 0; i--) {
StatusDTO temporaryStatus = iterator.next();
timelineService.addFavoriteStatus(temporaryStatus.getStatusId());
}
favoriteStatuses = timelineService.getFavoritesline();
assertEquals(10, favoriteStatuses.size());
iterator = timelineStatuses.iterator();
for (int i = 9; i >= 0; i--) {
StatusDTO temporaryStatus = iterator.next();
assertEquals("temporary status " + i + " #ippon", temporaryStatus.getContent());
timelineService.removeStatus(temporaryStatus.getStatusId());
}
timelineStatuses = timelineService.getTimeline(10, null, null);
assertEquals(2, timelineStatuses.size());
favoriteStatuses = timelineService.getFavoritesline();