February 2015
Intermediate to advanced
178 pages
3h 47m
English
The Spring Framework provides a set of Spring-specific annotations for unit and integration tests in conjunction with the TestContext framework. The following are widely used annotations:
@ContextConfiguration: We have already covered this annotation and loaded applicationContext for integration tests. This annotation is used to determine how to load and configure an ApplicationContext for integration tests. @ContextConfiguration declares the application context's resource locations or the annotated classes that will be used to load the context.@WebAppConfiguration: This class-level annotation is used to instruct the Spring context that the ApplicationContext loaded using the @ContextConfiguration annotation is a WebApplicationContext ...Read now
Unlock full access