Spring Testing Annotations

The Spring Framework provides the following set of Spring-specific annotations that you can use in your unit and integration tests in conjunction with the TestContext framework. Spring’s testing annotations include the following: @BootstrapWith @ContextConfiguration @WebAppConfiguration @ContextHierarchy @ActiveProfiles @TestPropertySource @DirtiesContext @TestExecutionListeners @Commit @Rollback @BeforeTransaction @AfterTransaction @Sql @SqlConfig @SqlGroup @BootstrapWith @BootstrapWith is a class-level annotation that you can use to configure how the Spring TestContext Framework is bootstrapped. … Continue reading Spring Testing Annotations