Last active
September 25, 2016 12:18
-
-
Save dherges/7cef2e8920003e9c64aac9f8b744c5f8 to your computer and use it in GitHub Desktop.
ok-testing-reloaded-medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RetweetsIdRoute implements Route { | |
| private List<Tweet> fetchTweets(long id, int count) { | |
| return IntStream.range(0, 99) | |
| .mapToObj((i) -> { | |
| final Tweet tweet = new Tweet(); | |
| tweet.id = id + i; | |
| tweet.text = String.format("Retweet #%s of %s for %s", i, count, id); | |
| tweet.favorited = i % 2 == 0; | |
| return tweet; | |
| }) | |
| .collect(Collectors.toList()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment