houzhongjian
2025-03-06 9d883961289ff6bdbf0639bdb00b8dab3637951c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.iailab.sdk.demo;
 
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;
 
 
@RunWith(SpringRunner.class)
@SpringBootTest
public class HttpClientDemoTest{
 
    @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
    public void authenticate() {
        httpClientDemo.authenticate();
    }
 
    @Test
    public void refreshToken() throws Exception {
        httpClientDemo.refreshToken();
    }
}