spring-mvc-test-utils

Test library aimed to ease Spring MVC form validation tests. Easily post an entire form to a given url.

MIT License

Stars
19
Committers
10

Bot releases are hidden (Show)

spring-mvc-test-utils - v3.2.0 Latest Release

Published by f-lopes about 2 years ago

What's Changed

New features

Dependencies updates

New Contributors

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>
spring-mvc-test-utils - v3.1.0

Published by f-lopes over 3 years ago

  • Use org.hibernate.validator groupId for hibernate-validator
  • Bump spring-test from 5.2.8.RELEASE to 5.3.3 (#72)
  • Bump junit-jupiter from 5.7.0 to 5.7.1 (#74)
  • Bump lombok from 1.18.16 to 1.18.18 (#73)
  • Bump spotbugs-maven-plugin from 4.1.4 to 4.2.0 (#71)
  • Bump maven-pmd-plugin from 3.13.0 to 3.14.0 (#67)
  • Change tests log level to info (#68) (@JKancel)
<dependency>
    <groupId>io.florianlopes</groupId>
    <artifactId>spring-mvc-test-utils</artifactId>
    <version>3.1.0</version>
    <scope>test</scope>
</dependency>
spring-mvc-test-utils - v3.0.0

Published by f-lopes about 4 years ago

spring-mvc-test-utils - v2.3.0

Published by f-lopes about 4 years ago

spring-mvc-test-utils - Release 2.2.1

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>
spring-mvc-test-utils - Release 2.2.0

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>
spring-mvc-test-utils - Release 2.0.0

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:

  • Rely on Spring's default property editors
  • Remove custom property editors (use Spring's ones)
  • Remove MockMvcRequestBuilderUtils#unregisterPropertyEditor method
spring-mvc-test-utils - Release 1.0.2

Published by f-lopes over 6 years ago

spring-mvc-test-utils - Release 1.0.1

Published by f-lopes about 7 years ago

  • Update outdated dependencies
  • Update README: add MockMvc usage
spring-mvc-test-utils - Release 1.0

Published by f-lopes about 8 years ago

Package Rankings
Top 33.35% on Repo1.maven.org
Badges
Extracted from project README
Gitpod ready-to-code Maven Central codecov Codacy Badge
Related Projects