@@ -98,7 +98,7 @@ public static void teardown() {
9898 Project project = gitLabApi .getProjectApi ().getProject (TEST_NAMESPACE , TEST_PROJECT_NAME );
9999
100100 try {
101- gitLabApi .getRepositoryFileApi ().deleteFile (TEST_FILEPATH , project .getId (), TEST_BRANCH_NAME , "Cleanup test files." );
101+ gitLabApi .getRepositoryFileApi ().deleteFile (project .getId (), TEST_FILEPATH , TEST_BRANCH_NAME , "Cleanup test files." );
102102 } catch (GitLabApiException ignore ) {
103103 }
104104
@@ -186,10 +186,10 @@ public void testCreateFileAndDeleteFile() throws GitLabApiException {
186186 RepositoryFile file = new RepositoryFile ();
187187 file .setFilePath (TEST_FILEPATH );
188188 file .setContent (TEST_CONTENT );
189- RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (file , project .getId (), TEST_BRANCH_NAME , "Testing createFile()." );
189+ RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (project .getId (), file , TEST_BRANCH_NAME , "Testing createFile()." );
190190 assertNotNull (createdFile );
191191
192- gitLabApi .getRepositoryFileApi ().deleteFile (TEST_FILEPATH , project .getId (), TEST_BRANCH_NAME , "Testing deleteFile()." );
192+ gitLabApi .getRepositoryFileApi ().deleteFile (project .getId (), TEST_FILEPATH , TEST_BRANCH_NAME , "Testing deleteFile()." );
193193 gitLabApi .getRepositoryApi ().deleteBranch (project .getId (), TEST_BRANCH_NAME );
194194 }
195195
@@ -205,10 +205,10 @@ public void testCreateFileWithEmptyContent() throws GitLabApiException {
205205 RepositoryFile file = new RepositoryFile ();
206206 file .setFilePath (TEST_FILEPATH );
207207 file .setContent ("" );
208- RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (file , project .getId (), TEST_BRANCH_NAME , "Testing createFile()." );
208+ RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (project .getId (), file , TEST_BRANCH_NAME , "Testing createFile()." );
209209 assertNotNull (createdFile );
210210
211- gitLabApi .getRepositoryFileApi ().deleteFile (TEST_FILEPATH , project .getId (), TEST_BRANCH_NAME , "Testing deleteFile()." );
211+ gitLabApi .getRepositoryFileApi ().deleteFile (project .getId (), TEST_FILEPATH , TEST_BRANCH_NAME , "Testing deleteFile()." );
212212 gitLabApi .getRepositoryApi ().deleteBranch (project .getId (), TEST_BRANCH_NAME );
213213 }
214214
@@ -224,7 +224,7 @@ public void testUpdateFile() throws GitLabApiException {
224224 RepositoryFile file = new RepositoryFile ();
225225 file .setFilePath (TEST_FILEPATH );
226226 file .setContent (TEST_CONTENT );
227- RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (file , project .getId (), TEST_BRANCH_NAME , "Testing createFile()." );
227+ RepositoryFile createdFile = gitLabApi .getRepositoryFileApi ().createFile (project .getId (), file , TEST_BRANCH_NAME , "Testing createFile()." );
228228 assertNotNull (createdFile );
229229
230230 Optional <RepositoryFile > optionalFile = gitLabApi .getRepositoryFileApi ().getOptionalFile (project , TEST_FILEPATH , TEST_BRANCH_NAME );
@@ -236,14 +236,14 @@ public void testUpdateFile() throws GitLabApiException {
236236 file = new RepositoryFile ();
237237 file .setFilePath (TEST_FILEPATH );
238238 file .encodeAndSetContent (newContent );
239- gitLabApi .getRepositoryFileApi ().updateFile (file , project .getId (), TEST_BRANCH_NAME , "Testing updateFile()." );
239+ gitLabApi .getRepositoryFileApi ().updateFile (project .getId (), file , TEST_BRANCH_NAME , "Testing updateFile()." );
240240
241241 optionalFile = gitLabApi .getRepositoryFileApi ().getOptionalFile (project , TEST_FILEPATH , TEST_BRANCH_NAME );
242242 assertTrue (optionalFile .isPresent ());
243243 RepositoryFile updatedFile = optionalFile .get ();
244244 assertEquals (newContent , updatedFile .getDecodedContentAsString ());
245245
246- gitLabApi .getRepositoryFileApi ().deleteFile (TEST_FILEPATH , project .getId (), TEST_BRANCH_NAME , "Testing deleteFile()." );
246+ gitLabApi .getRepositoryFileApi ().deleteFile (project .getId (), TEST_FILEPATH , TEST_BRANCH_NAME , "Testing deleteFile()." );
247247 gitLabApi .getRepositoryApi ().deleteBranch (project .getId (), TEST_BRANCH_NAME );
248248 }
249249}
0 commit comments