Skip to content

Commit

Permalink
Update slides
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Oct 18, 2012
1 parent 527f4e3 commit a4537ff
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions spring-mvc-test-framework/slides.md
Expand Up @@ -2,37 +2,44 @@
# Spring MVC Test Framework # Spring MVC Test Framework


!SLIDE small incremental bullets !SLIDE small incremental bullets
# Origins of Spring MVC Test # Background
* Based on [spring-test-mvc](github.com/SpringSource/spring-test-mvc) project on Github * Recently added to `spring-test` as of Spring 3.2 RC1
* Just added to `spring-test` module (Spring 3.2 RC1) * Originates from [spring-test-mvc](github.com/SpringSource/spring-test-mvc) separate project on Github
* Nearly identical code base * Nearly identical code bases
* Github project will continue to support Spring 3.1 * [spring-test-mvc](github.com/SpringSource/spring-test-mvc) will continue to support Spring 3.1


!SLIDE small incremental bullets !SLIDE small incremental bullets
# Differences with [spring-test-mvc](github.com/SpringSource/spring-test-mvc) # Differences with [spring-test-mvc](github.com/SpringSource/spring-test-mvc)
* Depends on Spring 3.2 vs. Spring 3.1 * Dependency on Spring 3.2, not Spring 3.1
* Integrated with `@WebAppConfiguration` * Support for Spring 3.2 features (e.g. Servlet 3 async)
* Provides Servlet 3 async support * Integration with `@WebAppConfiguration`
* Different packages * Different packages
* Straight-forward to migrate * Easy migration from spring-test-mvc to Spring 3.2


!SLIDE small incremental bullets !SLIDE small incremental bullets
# High Level Description # What does it provide?
* 1st class support for testing Spring MVC apps * 1st class support for testing Spring MVC apps
* Using a fluent API * Fluent API
* Server-side tests involve the __`DispatcherServlet`__ * Server-side tests involve the __`DispatcherServlet`__
* Client-side tests __`RestTemplate`__-based * Client-side tests are __`RestTemplate`__-based


!SLIDE small incremental bullets !SLIDE small incremental bullets
# Built on `spring-test` # Built on `spring-test`
* `TestContext` framework for loading Spring config * `TestContext` framework used for loading Spring config
* `MockHttpServletRequest/Response` * `MockHttpServletRequest/Response`
* `MockFilterChain` * `MockFilterChain`
* Servlet container is not used * Servlet container is not used


!SLIDE small incremental bullets !SLIDE small incremental bullets
# Extent of Support # Extent of support
* HTTP message conversion fully supported<br> e.g. `@RequestBody`/`@ResponseBody` * Pretty much everything should work as it does at runtime
* Most rendering technologies as well<br> JSON, XML, Freemarker/Velocity, Thyme, etc * HTTP message conversion<br> e.g. `@RequestBody`/`@ResponseBody`
* No JSP rendering and redirects<br> Assert selected JSP view or redirected URL * Most rendering technologies<br> JSON, XML, Freemarker/Velocity, Thymeleaf, Excel, etc

!SLIDE small incremental bullets
# Limitations

* We are not in a servlet container
* Foward and redirect not executed
* No JSP rendering


0 comments on commit a4537ff

Please sign in to comment.