I have a spring-boot application where my @SpringBootApplication starter class looks like a standard one. So I created many tests for all my functi
org.springframework.boot
spring-boot-maven-plugin
your.awesome.package.Application
If you aim for 100% coverage, one thing you can do is simply not having a main method at all. You still require a class annotated with @SpringBootApplication but it can be empty.
Be warned though as it has its drawbacks and other tools that rely on main can break.