测试service层:
/**
*测试系统业务类的方法
*
* @author
* @date
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {Application.class})//配置启动类
public class TestSystemInfoServiceImpl {
@Autowired
private SystemInfoService systemInfoService;
@Test
public void testGetSystemList(){
List<SystemInfo> systemInfoList=systemInfoService.getSystemList("",null,1);
System.out.println("systemInfoList: "+systemInfoList);
}
}