Skip to content

Commit

Permalink
update (XiaoMi#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanwb committed Feb 27, 2024
1 parent c95d798 commit d3cbe17
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.xiaomi.youpin.gitlab;

import com.google.gson.Gson;
import com.xiaomi.youpin.gitlab.bo.*;
import org.junit.Test;

import java.util.Arrays;
import java.util.List;

/**
* @Author wmin
Expand Down Expand Up @@ -130,5 +132,17 @@ public void getProjectCode() {
gitlab.getDomainByIP("https://xxx.com","xx","", Arrays.asList("127.0.0.1"),"token");
}

@Test
public void getFileContentTest() {
String content = gitlab.getFileContent("master", "git.xxx.com", "", "83504", "file path");
System.out.println(content);
}

@Test
public void getProjectStructureTreeTest() {
List<GitTreeItem> treeItemList = gitlab.getProjectStructureTree("master", "git.xxx.com", "", "83504");
System.out.println(new Gson().toJson(treeItemList));
}


}

0 comments on commit d3cbe17

Please sign in to comment.