@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = SwsApplication.class)
public class AlarmTest {
@Autowired
IAlarmService alarmService;
@Test
public void test1(){
List<AlarmDto> alarmDtos = alarmService.getAllAlarms();
TestUtils.chrismasTree();
System.out.println(alarmDtos);
}
}
SpringBoot service层测试类
最新推荐文章于 2024-07-19 23:31:53 发布