@@ -96,15 +96,15 @@ public void beforeMethod() {
9696
9797 @ Test
9898 public void testGetAuthenticatedUserEvents () throws GitLabApiException {
99- List <Event > events = gitLabApi .getEventsApi ().getAuthenticatedUserEvents (null , null , null , null , null );
99+ List <Event > events = gitLabApi .getEventsApi ().getAuthenticatedUserEvents (null , null , null , null , null , 1 , 10 );
100100 assertNotNull (events );
101101 }
102102
103103 @ Test
104104 public void testGetAuthenticatedUserEventsWithDates () throws GitLabApiException {
105105 Date after = new Date (0 );
106106 Date now = new Date ();
107- List <Event > events = gitLabApi .getEventsApi ().getAuthenticatedUserEvents (null , null , now , after , null );
107+ List <Event > events = gitLabApi .getEventsApi ().getAuthenticatedUserEvents (null , null , now , after , null , 1 , 10 );
108108 assertNotNull (events );
109109
110110 events = gitLabApi .getEventsApi ().getAuthenticatedUserEvents (null , null , after , null , null );
@@ -115,7 +115,7 @@ public void testGetAuthenticatedUserEventsWithDates() throws GitLabApiException
115115 @ Test
116116 public void testGetUserEvents () throws GitLabApiException {
117117 assertNotNull (testUser );
118- List <Event > events = gitLabApi .getEventsApi ().getUserEvents (testUser .getId (), null , null , null , null , null );
118+ List <Event > events = gitLabApi .getEventsApi ().getUserEvents (testUser .getId (), null , null , null , null , null , 1 , 10 );
119119 assertNotNull (events );
120120 }
121121
@@ -124,14 +124,15 @@ public void testGetUserEventsWithAllParams() throws GitLabApiException, ParseExc
124124 assertNotNull (testUser );
125125 Date before = ISO8601 .toDate ("2017-06-02" );
126126 Date after = new Date ();
127- List <Event > events = gitLabApi .getEventsApi ().getUserEvents (testUser .getId (), Constants .ActionType .CREATED , Constants .TargetType .PROJECT , before , after , Constants .SortOrder .DESC );
127+ List <Event > events = gitLabApi .getEventsApi ().getUserEvents (
128+ testUser .getId (), Constants .ActionType .CREATED , Constants .TargetType .PROJECT , before , after , Constants .SortOrder .DESC , 1 , 10 );
128129 assertNotNull (events );
129130 }
130131
131132 @ Test
132133 public void testGetProjectEvents () throws GitLabApiException {
133134 assertNotNull (testProject );
134- List <Event > events = gitLabApi .getEventsApi ().getProjectEvents (testProject .getId (), null , null , null , null , null );
135+ List <Event > events = gitLabApi .getEventsApi ().getProjectEvents (testProject .getId (), null , null , null , null , null , 1 , 10 );
135136 assertNotNull (events );
136137 }
137138
0 commit comments