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);
    }
}

 

posted @ 2022-04-03 17:18  己为  阅读(68)  评论(0编辑  收藏  举报