List of usage examples for twitter4j IDs getPreviousCursor
@Override
long getPreviousCursor();
From source file:com.freshdigitable.udonroad.TimelineInstTestBase.java
License:Apache License
protected void setupConfig(User loginUser) throws Exception { final TwitterAPIConfiguration twitterAPIConfigMock = TwitterResponseMock.createTwitterAPIConfigMock(); when(twitter.getAPIConfiguration()).thenReturn(twitterAPIConfigMock); final long userId = loginUser.getId(); when(twitter.getId()).thenReturn(userId); when(twitter.showUser(userId)).thenReturn(loginUser); when(twitter.verifyCredentials()).thenReturn(loginUser); final IDs ignoringUserIDsMock = mock(IDs.class); when(ignoringUserIDsMock.getIDs()).thenReturn(new long[0]); when(ignoringUserIDsMock.getNextCursor()).thenReturn(0L); when(ignoringUserIDsMock.getPreviousCursor()).thenReturn(0L); when(twitter.getBlocksIDs()).thenReturn(ignoringUserIDsMock); when(twitter.getBlocksIDs(anyLong())).thenReturn(ignoringUserIDsMock); when(twitter.getMutesIDs(anyLong())).thenReturn(ignoringUserIDsMock); }