From a0df015b37f653456ce644bfc1fbc337d343d88e Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 12 三月 2025 18:06:40 +0800
Subject: [PATCH] demo

---
 src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java |   43 ++++++++++++++++++++++++++++---------------
 1 files changed, 28 insertions(+), 15 deletions(-)

diff --git a/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java b/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
index cb7d2d4..c2b6895 100644
--- a/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
+++ b/src/test/java/com/iailab/sdk/demo/HttpClientDemoTest.java
@@ -1,10 +1,16 @@
 package com.iailab.sdk.demo;
 
+import com.alibaba.fastjson.JSONObject;
+import com.iailab.sdk.auth.client.common.pojo.CommonResult;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.test.context.junit4.SpringRunner;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
 
 
 @RunWith(SpringRunner.class)
@@ -14,22 +20,8 @@
     @Autowired
     private HttpClientDemo httpClientDemo;
 
-    @Test
-    public void testDoGet() throws Exception {
-        httpClientDemo.HttpGet();
-    }
 
-    @Test
-    public void testDoPost() throws Exception {
-        httpClientDemo.HttpPost();
-    }
-
-    @Test
-    public void testGetDeviceValue() throws Exception {
-        httpClientDemo.HttpGetDeviceValue();
-    }
-
-    @Test
+    /*@Test
     public void authenticate() {
         httpClientDemo.authenticate();
     }
@@ -37,6 +29,18 @@
     @Test
     public void refreshToken() throws Exception {
         httpClientDemo.refreshToken();
+    }
+
+    @Test
+    public void testQueryPlanChart() throws Exception {
+        Map<String, Object> stringObjectMap = httpClientDemo.queryPlanChart();
+        System.out.println(stringObjectMap);
+    }
+
+    @Test
+    public void testQueryPointsRealValue() throws Exception {
+        Map<String, Object> stringObjectMap = httpClientDemo.queryPointsRealValue();
+        System.out.println(stringObjectMap);
     }
 
     @Test
@@ -49,5 +53,14 @@
     public void testDoHttpGet() throws Exception {
         // 准备参数
         httpClientDemo.doHttpGet();
+    }*/
+
+    @Test
+    public void testDoHttpGet() throws Exception {
+        // 准备参数
+        List<String> params = new ArrayList<String>();
+        params.add("M0000101153");
+        CommonResult<Map<String, Object>> mapCommonResult = httpClientDemo.queryPointsRealValue(params);
+        System.out.println(JSONObject.toJSONString(mapCommonResult));
     }
 }

--
Gitblit v1.9.3