What is @ContextConfiguration in spring?
Accordingly, what is @ContextConfiguration in spring boot?
@ContextConfiguration defines class-level metadata that is used to determine how to load and configure an ApplicationContext for integration tests.
Simply so, what is spring testing?
Testing is a crucial part in the business of software development. It ensures performance and quality of the product. The Java platform supports many testing frameworks. Spring introduces the principle of dependency injection on unit testing and has first-class support for integration testing.
@DirtiesContext is a spring test annotation which is used to indicate that the application context cached should be removed and reloaded after each test run. The application context removed will also be closed. @DirtiesContext can be declared at method level as well as class level.