@@ -235,7 +235,8 @@ public void testUpdate() throws GitLabApiException {
235235 .withWikiEnabled (true )
236236 .withSnippetsEnabled (true )
237237 .withVisibility (Visibility .PUBLIC )
238- .withTagList (Arrays .asList ("tag1" , "tag2" ));
238+ .withTagList (Arrays .asList ("tag1" , "tag2" ))
239+ .withMergeMethod (Project .MergeMethod .MERGE )
239240
240241 Project newProject = gitLabApi .getProjectApi ().createProject (project );
241242 assertNotNull (newProject );
@@ -247,6 +248,7 @@ public void testUpdate() throws GitLabApiException {
247248 assertEquals (project .getSnippetsEnabled (), newProject .getSnippetsEnabled ());
248249 assertEquals (project .getTagList (), newProject .getTagList ());
249250 assertTrue (Visibility .PUBLIC == newProject .getVisibility () || Boolean .TRUE == newProject .getPublic ());
251+ assertEquals (Project .MergeMethod .MERGE , newProject .getMergeMethod ());
250252
251253 project = new Project ()
252254 .withId (newProject .getId ())
@@ -256,7 +258,8 @@ public void testUpdate() throws GitLabApiException {
256258 .withMergeRequestsEnabled (false )
257259 .withWikiEnabled (false )
258260 .withSnippetsEnabled (false )
259- .withVisibility (Visibility .PRIVATE );
261+ .withVisibility (Visibility .PRIVATE )
262+ .withMergeMethod (Project .MergeMethod .REBASE_MERGE )
260263
261264 Project updatedProject = gitLabApi .getProjectApi ().updateProject (project );
262265 assertNotNull (updatedProject );
@@ -267,6 +270,7 @@ public void testUpdate() throws GitLabApiException {
267270 assertEquals (project .getWikiEnabled (), updatedProject .getWikiEnabled ());
268271 assertEquals (project .getSnippetsEnabled (), updatedProject .getSnippetsEnabled ());
269272 assertTrue (Visibility .PRIVATE == updatedProject .getVisibility () || Boolean .FALSE == updatedProject .getPublic ());
273+ assertEquals (Project .MergeMethod .REBASE_MERGE , updatedProject .getMergeMethod ());
270274 }
271275
272276 @ Test
0 commit comments