Test library aimed to ease Spring MVC form validation tests. Easily post an entire form to a given url.
MIT License
Bot releases are visible (Hide)
Full Changelog: https://github.com/f-lopes/spring-mvc-test-utils/compare/v3.1.0...v3.2.0
<dependency>
<groupId>io.florianlopes</groupId>
<artifactId>spring-mvc-test-utils</artifactId>
<version>3.2.0</version>
</dependency>
Published by f-lopes over 3 years ago
<dependency>
<groupId>io.florianlopes</groupId>
<artifactId>spring-mvc-test-utils</artifactId>
<version>3.1.0</version>
<scope>test</scope>
</dependency>
Published by f-lopes about 4 years ago
Published by f-lopes about 4 years ago
Published by f-lopes over 5 years ago
Integrates https://github.com/f-lopes/spring-mvc-test-utils/issues/10: ignore synthetic fields
<dependency>
<groupId>io.florianlopes</groupId>
<artifactId>spring-mvc-test-utils</artifactId>
<version>2.2.1</version>
<scope>test</scope>
</dependency>
Published by f-lopes over 5 years ago
Integrates https://github.com/f-lopes/spring-mvc-test-utils/pull/9
Adds new syntax usage (with(form())
):
final AddUserForm addUserForm = new AddUserForm("John", "Doe", null, new Address(1, "Street", 5222, "New York")));
// POST
mockMvc.perform(post("/users").with(MockMvcRequestBuilderUtils.form(addUserForm)))
.andExpect(MockMvcResultMatchers.model().hasNoErrors());
// GET
mockMvc.perform(get("/users").with(MockMvcRequestBuilderUtils.form(addUserForm)))
.andExpect(MockMvcResultMatchers.model().hasNoErrors());
// PUT
mockMvc.perform(put("/users").with(MockMvcRequestBuilderUtils.form(addUserForm)))
.andExpect(MockMvcResultMatchers.model().hasNoErrors());
<dependency>
<groupId>io.florianlopes</groupId>
<artifactId>spring-mvc-test-utils</artifactId>
<version>2.2.0</version>
<scope>test</scope>
</dependency>
Published by f-lopes over 6 years ago
Integrates https://github.com/f-lopes/spring-mvc-test-utils/pull/7
Add support for Numbers classes:
Published by f-lopes over 6 years ago
Published by f-lopes about 7 years ago
Published by f-lopes about 8 years ago