Commit 0423fa64 by 杨林龙

添加测试用例

1 parent f90dc9f7
package cn.com.glsx.schedulerjob.task.modules.service;
import cn.com.glsx.Application;
import lombok.extern.slf4j.Slf4j;
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 static org.junit.Assert.*;
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class DeviceFreqServiceTest {
@Autowired
private DeviceFreqService deviceFreqService;
@Test
public void closeDeviceFreq() {
deviceFreqService.closeDeviceFreq();
}
@Test
public void closeDeviceFreqFromDB() {
deviceFreqService.closeDeviceFreqFromDB();
}
}
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!