其他分享
首页 > 其他分享> > SpringBootTest

SpringBootTest

作者:互联网

@SpringBootTest
class SjTest {
    Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    HelloController helloController;

    @Disabled
    @Test
    void contextLoads() {
        String r = helloController.hello();
        log.info(r);
    }
}
class SjTest2 {
    Logger log = LoggerFactory.getLogger(getClass());

    @Disabled
    @Test
    void contextLoads() {
        String r = 6 + 8 + "己为";
        log.info(r);
    }
}

 

标签:info,getClass,log,getLogger,void,Disabled,SpringBootTest
来源: https://www.cnblogs.com/xsj891107/p/16096499.html