diff --git a/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java b/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java index bf9fdae..a328f3c 100644 --- a/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java +++ b/src/test/java/com/gitlink/softbot/service/market/GitLinkApiTest.java @@ -57,7 +57,7 @@ public class GitLinkApiTest { @Test public void addWebhook() throws JsonProcessingException { - webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); Object[] params = new Object[]{"xxq250", "ruoyi-vue-pro"}; Response response = api.addWebhook(85175,params,webhooks); System.out.println(response.getData()); @@ -65,7 +65,7 @@ public class GitLinkApiTest { @Test public void updateWebhook() throws JsonProcessingException { - webhooks = new Webhook(false, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(false, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); Object[] params = new Object[]{"xxq250", "ruoyi-vue-pro"}; Response response = api.updateWebhook(85175,params,1082,webhooks); System.out.println(response.getData()); diff --git a/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java b/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java index 0522b63..c549064 100644 --- a/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java +++ b/src/test/java/com/gitlink/softbot/service/market/RestTemplateUtilTests.java @@ -38,7 +38,7 @@ class RestTemplateUtilTests { @BeforeEach public void setUp() { mapper = new ObjectMapper(); - webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}); + webhooks = new Webhook(true, "json", "GET", "123456", "http://localhost:10000", "*", new Object[]{"push"}, "softbot"); headParams = new HashMap<>(); headParams.put("Authorization", "Bearer "+TOKEN); }