spring boot testing: Zero to Hero
@SpringBootTest
and web testing
@SpringBootTest
to start up your spring boot application in your tests.
- You can inject
MockMvc
in your test fields or as your test method argument:
You can use a mocked web server (which is the default):
HtlmUnit
You can use HtmlUnit to test simple HTML page: