I am trying to test my SpringBoot Application. When I start it as usual it starts the Tomcat Service as expected and loggs it into the console after the Spring Logo.
When I execute @SpringBootTest Classes however, it appearently doesn't start the Tomcat Service as the URL is not accessible in the Test and after the Spring Logo all Logs regarding the Tomcat Service are Missing.
An answer on Stackoverflow said:
Running a test with @SpringBootTest does start an embedded server by default. By default, it runs in the MOCK environment.
Link: https://stackoverflow.com/a/56077027/16034630
And this is how I understood it. But why do my Tests not start the Application normally with the Tomcat Service included?