when I was testing with SpringBootTest, I found that the program would be started, causing the console test results to be flooded by the program output, and it would take time and resources to start the program. Is there any way to do SpringBootTest testing without starting the program?
in my test program, I will add the following comments
@ RunWith (SpringJUnit4ClassRunner.class)
@ SpringBootTest (classes = MainApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
it feels like starting the program because there is classes = MainApplication.class
but if you don"t add it, you can"t find other bean injections to be used