Second milestone of spring-test-mvc

A second milestone of the Spring MVC Test project, version 1.0.0.M2 is now available through the SpringSource Artifactory repository http://repo.springsource.org/milestone.

There is much that’s new in this release. On the server side:

  • Support for servlet filters (see FilterTests.java); and in turn basic support for Spring Security (see SpringSecurityTests.java). Thanks to Rob Winch!
  • Ability to define default request properties and expectations to re-use across every performed request (see JsonPathAssertionTests.java)
  • An extension point for adding request-building methods in addition to the ones that are built-in (see SecurityRequestPostProcessors.java)
  • Support for “input” flash attributes
  • Upgrade to json-path 0.8.1
  • Lots of bug fixes, general improvements
  • Completed Javadoc

On the client side — which is used for tests that involve direct or indirect use of the  RestTemplate — we have a greatly expanded the selection of options for request matching (see the match package) as well as the options for response creation (see the response creators), lots of general improvements, and completed Javadoc.

In the very near future, the project source code will be replicated in the master branch of the Spring Framework and will be released with Spring 3.2 RC1 as part of the spring-test module, which will become its permanent home. In the mean time the spring-test-mvc project on Github will continue to exist and provide support for applications built on Spring 3.1.x.

I hope to see some of you at SpringOne, in less than a month, where I’ll be talking about this project in more detail co-presenting with Sam Brannen on  “Testing Web Applications with Spring 3.2″.

This entry was posted in Spring Framework, Spring MVC. Bookmark the permalink.

One Response to Second milestone of spring-test-mvc

  1. Alberto says:

    This is great stuff. Thank you very much!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>