RemoteBatteryServiceTest.java 916 Bytes
package cn.com.glsx.admin.modules.remote;

import cn.com.glsx.Application;
import cn.com.glsx.stdinterface.dto.DevicePowerDTO;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.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 static org.junit.jupiter.api.Assertions.*;

/**
 * @author xiangyanlin
 * @date 2022/4/24
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
class RemoteBatteryServiceTest {

    @Autowired
    private RemoteBatteryService remoteBatteryService;

    @Test
    public void testGetDevicePowerBySn() {
        DevicePowerDTO devicePower = remoteBatteryService.getDevicePowerBySn("2600105468");

    }

}