From d3cbe1747d86f7d181be5accf5d1a585bb6cd00b Mon Sep 17 00:00:00 2001 From: shanwb Date: Tue, 27 Feb 2024 14:59:07 +0800 Subject: [PATCH] update (#792) --- .../java/com/xiaomi/youpin/gitlab/GitlabTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jcommon/gitlab/src/test/java/com/xiaomi/youpin/gitlab/GitlabTest.java b/jcommon/gitlab/src/test/java/com/xiaomi/youpin/gitlab/GitlabTest.java index d24b74de6..2948f40d2 100644 --- a/jcommon/gitlab/src/test/java/com/xiaomi/youpin/gitlab/GitlabTest.java +++ b/jcommon/gitlab/src/test/java/com/xiaomi/youpin/gitlab/GitlabTest.java @@ -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 @@ -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 treeItemList = gitlab.getProjectStructureTree("master", "git.xxx.com", "", "83504"); + System.out.println(new Gson().toJson(treeItemList)); + } + }