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();
|
}
|
}
|