@SpringBootTest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


@SpringBootTest tells to SpringRunner, which is a JUnit plugin that provides custom Spring-specific testing behavior, to bootstrap the test with Spring Boot capabilities:
@SpringBootTest tells to SpringRunner, which is a JUnit plugin that provides custom Spring-specific testing behavior, to bootstrap the test with Spring Boot capabilities:
* load [[application.properties]]
* load [[Spring_Application_Configuration_Concepts#application.properties|application.properties]]
* etc.
* etc.



Revision as of 00:28, 11 October 2018

Internal

Overview

@SpringBootTest tells to SpringRunner, which is a JUnit plugin that provides custom Spring-specific testing behavior, to bootstrap the test with Spring Boot capabilities:

@SpringBootTest(webEnvironment=WebEnvironment.RANDOM_PORT)