Skip to content

Releases: f-lopes/spring-mvc-test-utils

v4.0.0

01 Oct 03:53
1edea7a
Compare
Choose a tag to compare

v4.0.0

<dependency>
  <groupId>io.florianlopes</groupId>
  <artifactId>spring-mvc-test-utils</artifactId>
  <version>4.0.0</version>
</dependency>

Java 11 is no longer supported, Java 17 is the minimum supported version.

What's Changed

🎉 New Features

  • Support of complex objects in Map value see corresponding test
  • build(git-hooks): add git-build-hook-maven-plugin and pre-commit hook… by @f-lopes in #261
  • feat: add support for Java 17 and Spring 6, restructure project by @f-lopes in #264
  • ci: remove obsolete CircleCI and TravisCI builds by @f-lopes in #268
  • refactor(tests): migrate to AssertJ for assertions by @f-lopes in #269
  • refactor(configuration): extract Configuration class by @f-lopes in #270
  • ci(code-coverage): Upload JaCoCo report to Codecov by @f-lopes in #271
  • feat(env): Add .sdkmanrc file by @f-lopes in #272
  • feat(ci): integrate SonarCloud analysis into build process by @f-lopes in #278
  • refactor: MockMvcRequestBuilderUtils and its Configuration by @f-lopes in #285
  • feat: integrate JReleaser for automated releases by @f-lopes in #287
  • fix(jreleaser): update GitHub Actions workflow for JReleaser by @f-lopes in #288
  • ci(release): clean flattened pom files before pushing next version by @f-lopes in #290

🔨 Dependency Upgrades

  • build(deps): bump maven-jxr-plugin from 3.2.0 to 3.3.0 by @dependabot in #179
  • build(deps): bump versions-maven-plugin from 2.11.0 to 2.13.0 by @dependabot in #195
  • build(deps): bump spotbugs-maven-plugin from 4.7.1.1 to 4.7.3.0 by @dependabot in #197
  • build(deps): bump maven-pmd-plugin from 3.17.0 to 3.19.0 by @dependabot in #184
  • build(deps): bump maven-javadoc-plugin from 3.4.0 to 3.4.1 by @dependabot in #178
  • build(deps-dev): bump lombok from 1.18.24 to 1.18.26 by @dependabot in #214
  • build(deps): bump maven-pmd-plugin from 3.19.0 to 3.20.0 by @dependabot in #213
  • build(deps): bump versions-maven-plugin from 2.13.0 to 2.15.0 by @dependabot in #216
  • build(deps): bump maven-source-plugin from 3.2.1 to 3.3.0 by @dependabot in #221
  • build(deps): bump jacoco-maven-plugin from 0.8.8 to 0.8.10 by @dependabot in #219
  • build(deps-dev): bump junit-jupiter from 5.9.0 to 5.9.3 by @dependabot in #224
  • build(deps): bump versions-maven-plugin from 2.15.0 to 2.16.0 by @dependabot in #228
  • build(deps-dev): bump lombok from 1.18.26 to 1.18.28 by @dependabot in #227
  • build(deps): bump spotbugs-maven-plugin from 4.7.3.0 to 4.7.3.4 by @dependabot in #226
  • build(deps-dev): bump logback-classic from 1.2.11 to 1.4.7 by @dependabot in #223
  • build(deps): bump maven-javadoc-plugin from 3.4.1 to 3.5.0 by @dependabot in #232
  • build(deps-dev): bump logback-classic from 1.4.7 to 1.4.8 by @dependabot in #231
  • build(deps): bump maven-pmd-plugin from 3.20.0 to 3.21.0 by @dependabot in #230
  • build(deps): bump maven-compiler-plugin from 3.10.1 to 3.11.0 by @dependabot in #229
  • build(deps-dev): bump ch.qos.logback:logback-classic from 1.4.8 to 1.4.11 by @dependabot in #240
  • build(deps-dev): bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.0 by @dependabot in #237
  • build(deps): bump spotbugs-maven-plugin from 4.7.3.4 to 4.7.3.5 by @dependabot in #234
  • build(deps): bump org.apache.commons:commons-lang3 from 3.12.0 to 3.13.0 by @dependabot in #238
  • build(deps-dev): bump ch.qos.logback:logback-classic from 1.4.11 to 1.4.12 by @dependabot in #243
  • build(deps): bump org.apache.maven.plugins:maven-jxr-plugin from 3.3.0 to 3.4.0 by @dependabot in #248
  • build(deps): bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.13.0 by @dependabot in #247
  • build(deps-dev): bump ch.qos.logback:logback-classic from 1.4.12 to 1.5.7 by @dependabot in #246
  • build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.8.0 by @dependabot in #244
  • build(deps): bump org.codehaus.mojo:versions-maven-plugin from 2.16.0 to 2.17.1 by @dependabot in #254
  • build(deps): bump org.jacoco:jacoco-maven-plugin from 0.8.10 to 0.8.12 by @dependabot in #253
  • build(deps): bump org.apache.maven.plugins:maven-pmd-plugin from 3.21.0 to 3.24.0 by @dependabot in #252
  • build(deps): bump org.apache.commons:commons-lang3 from 3.13.0 to 3.16.0 by @dependabot in #255
  • build(deps): bump org.apache.maven.plugins:maven-source-plugin from 3.3.0 to 3.3.1 by @dependabot in #260
  • build(deps): bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.13 to 1.7.0 by @dependabot in #259
  • build(deps-dev): bump org.junit.jupiter:junit-jupiter from 5.10.0 to 5.11.0 by @dependabot in #258
  • build(deps-dev): bump org.projectlombok:lombok from 1.18.28 to 1.18.34 by @dependabot in #257
  • build(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.7.3.5 to 4.8.6.2 by @dependabot in #263
  • build(deps): bump org.apache.maven.plugins:maven-jxr-plugin from 3.4.0 to 3.5.0 by @dependabot in #262
  • build(deps): bump org.apache.maven.plugins:maven-pmd-plugin from 3.24.0 to 3.25.0 by @dependabot in #266
  • build(deps): bump org.apache.maven.plugins:maven-javadoc-plugin from 3.8.0 to 3.10.0 by @dependabot in #265
  • build(deps): bump org.codehaus.mojo:flatten-maven-plugin from 1.5.0 to 1.6.0 by @dependabot in #277
  • build(deps): bump org.projectlombok:lombok from 1.18.30 to 1.18.34 by @dependabot in #276
  • build(deps): bump org.apache.commons:commons-lang3 from 3.13.0 to 3.16.0 by @dependabot in #275
  • build(deps): bump org.apache.maven.plugins:maven-source-plugin from 3.3.0 to 3.3.1 by @dependabot in #273
  • build(deps): bump org.sonatype.plugins:nexus-staging-maven-plugin from 1.6.13 to 1.7.0 by @dependabot in #274
  • build(deps-dev): bump ch.qos.logback:logback-classic from 1.5.7 to 1.5.8 by @dependabot in #281
  • build(deps): bump com.github.spotbugs:spotbugs-maven-plugin from 4.8.6.2 to 4.8.6.3 by @dependabot in #280
  • build(deps): bump org.springframework:spring-framework-bom from 6.1.12 to 6.1.13 by @dependabot in #282
  • build(deps): bump org.apache.commons:commons-lang3 from 3.16.0 to 3.17.0 by @dependabot in #279

Other Changes

  • Add CodeQL workflow for GitHub code scanning by @lgtm-com in #198
  • ci(main-build): Add GitHub Actions main workflow (build.yml) by @f-lopes in #256

Full Changelog: v3.2.0...v4.0.0

v3.2.0

10 Aug 04:57
Compare
Choose a tag to compare

What's Changed

New features

  • Add configuration class to exclude specific fields by @schosin in #177
  • Use Spring BOM to manage Spring dependencies by @SingingBush in #129

Dependencies updates

  • Bump maven-jxr-plugin from 3.0.0 to 3.1.1 by @dependabot-preview in #84
  • Bump jacoco-maven-plugin from 0.8.6 to 0.8.7 by @dependabot-preview in #86
  • Bump lombok from 1.18.18 to 1.18.20 by @dependabot-preview in #80
  • Bump commons-lang3 from 3.11 to 3.12.0 by @dependabot-preview in #77
  • Bump spotbugs-maven-plugin from 4.2.0 to 4.2.3 by @dependabot-preview in #82
  • Upgrade to GitHub-native Dependabot by @dependabot-preview in #85
  • Bump spring-test from 5.3.3 to 5.3.7 by @dependabot-preview in #88
  • Bump spring-webmvc from 5.3.3 to 5.3.7 by @dependabot in #91
  • Bump slf4j-api from 1.7.30 to 1.7.31 by @dependabot in #98
  • Bump maven-javadoc-plugin from 3.2.0 to 3.3.0 by @dependabot in #95
  • Bump junit-jupiter from 5.7.1 to 5.7.2 by @dependabot in #94
  • Bump spring-test from 5.3.7 to 5.3.8 by @dependabot in #96
  • Bump spring-webmvc from 5.3.7 to 5.3.8 by @dependabot in #97
  • build(deps): bump spotbugs-maven-plugin from 4.2.3 to 4.3.0 by @dependabot in #99
  • build(deps): bump slf4j-api from 1.7.31 to 1.7.32 by @dependabot in #103
  • build(deps-dev): bump logback-classic from 1.2.3 to 1.2.4 by @dependabot in #102
  • build(deps): bump spring-test from 5.3.8 to 5.3.9 by @dependabot in #101
  • build(deps-dev): bump logback-classic from 1.2.4 to 1.2.4-groovyless by @dependabot in #104
  • build(deps): bump spotbugs-maven-plugin from 4.3.0 to 4.4.2 by @dependabot in #114
  • build(deps-dev): bump junit-jupiter from 5.7.2 to 5.8.1 by @dependabot in #113
  • build(deps): bump maven-pmd-plugin from 3.14.0 to 3.15.0 by @dependabot in #108
  • build(deps-dev): bump lombok from 1.18.20 to 1.18.22 by @dependabot in #117
  • build(deps): bump spotbugs-maven-plugin from 4.4.2 to 4.4.2.1 by @dependabot in #118
  • build(deps): bump spotbugs-maven-plugin from 4.4.2.1 to 4.4.2.2 by @dependabot in #119
  • build(deps): bump spring-test from 5.3.9 to 5.3.12 by @dependabot in #120
  • build(deps): bump spring-webmvc from 5.3.8 to 5.3.12 by @dependabot in #121
  • build(deps-dev): bump logback-classic from 1.2.4-groovyless to 1.2.6 by @dependabot in #107
  • build(deps-dev): bump logback-classic from 1.2.6 to 1.2.7 by @dependabot in #122
  • build(deps): bump spotbugs-maven-plugin from 4.4.2.2 to 4.5.0.0 by @dependabot in #125
  • build(deps): bump spring-webmvc from 5.3.12 to 5.3.13 by @dependabot in #124
  • build(deps): bump spring-test from 5.3.12 to 5.3.13 by @dependabot in #123
  • build(deps-dev): bump junit-jupiter from 5.8.1 to 5.8.2 by @dependabot in #126
  • build(deps-dev): bump logback-classic from 1.2.7 to 1.2.8 by @dependabot in #132
  • build(deps-dev): bump logback-classic from 1.2.8 to 1.2.10 by @dependabot in #136
  • build(deps): bump spring-framework-bom from 5.3.13 to 5.3.14 by @dependabot in #133
  • build(deps): bump spotbugs-maven-plugin from 4.5.0.0 to 4.5.2.0 by @dependabot in #135
  • build(deps): bump spotbugs-maven-plugin from 4.5.2.0 to 4.5.3.0 by @dependabot in #137
  • build(deps): bump spring-framework-bom from 5.3.14 to 5.3.16 by @dependabot in #150
  • build(deps): bump maven-pmd-plugin from 3.15.0 to 3.16.0 by @dependabot in #149
  • build(deps): bump nexus-staging-maven-plugin from 1.6.8 to 1.6.11 by @dependabot in #148
  • build(deps): bump maven-javadoc-plugin from 3.3.1 to 3.3.2 by @dependabot in #145
  • build(deps): bump slf4j-api from 1.7.32 to 1.7.36 by @dependabot in #144
  • build(deps): bump versions-maven-plugin from 2.8.1 to 2.9.0 by @dependabot in #142
  • build(deps): bump maven-compiler-plugin from 3.8.1 to 3.10.0 by @dependabot in #147
  • build(deps): bump nexus-staging-maven-plugin from 1.6.11 to 1.6.12 by @dependabot in #151
  • build(deps-dev): bump logback-classic from 1.2.10 to 1.2.11 by @dependabot in #153
  • build(deps): bump maven-compiler-plugin from 3.10.0 to 3.10.1 by @dependabot in #155
  • build(deps): bump versions-maven-plugin from 2.9.0 to 2.10.0 by @dependabot in #156
  • build(deps-dev): bump lombok from 1.18.22 to 1.18.24 by @dependabot in #163
  • build(deps): bump maven-javadoc-plugin from 3.3.2 to 3.4.0 by @dependabot in #164
  • build(deps): bump spotbugs-maven-plugin from 4.5.3.0 to 4.6.0.0 by @dependabot in #159
  • build(deps): bump jacoco-maven-plugin from 0.8.7 to 0.8.8 by @dependabot in #161
  • build(deps): bump nexus-staging-maven-plugin from 1.6.12 to 1.6.13 by @dependabot in #165
  • build(deps): bump maven-jxr-plugin from 3.1.1 to 3.2.0 by @dependabot in #158
  • build(deps): bump spring-framework-bom from 5.3.16 to 5.3.20 by @dependabot in #166
  • build(deps): bump spotbugs-maven-plugin from 4.6.0.0 to 4.7.0.0 by @dependabot in #167
  • build(deps): bump maven-pmd-plugin from 3.16.0 to 3.17.0 by @dependabot in #169
  • build(deps): bump versions-maven-plugin from 2.10.0 to 2.11.0 by @dependabot in #168
  • build(deps): bump spring-framework-bom from 5.3.20 to 5.3.21 by @dependabot in #170
  • build(deps-dev): bump junit-jupiter from 5.8.2 to 5.9.0 by @dependabot in #174
  • build(deps): bump spotbugs-maven-plugin from 4.7.0.0 to 4.7.1.1 by @dependabot in #173

New Contributors

Full Changelog: v3.1.0...v3.2.0

<dependency>
  <groupId>io.florianlopes</groupId>
  <artifactId>spring-mvc-test-utils</artifactId>
  <version>3.2.0</version>
</dependency>

v3.1.0

06 Feb 11:45
Compare
Choose a tag to compare
  • 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>

v3.0.0

24 Jul 06:29
Compare
Choose a tag to compare
Release 3.0.0

Set minimum Java version to 11

v2.3.0

23 Jul 17:24
Compare
Choose a tag to compare
feat: use nexus-staging-maven-plugin to release to maven central

Replace default deploy maven plugin with nexus-staging-maven-plugin
to fix TravisCI issue: https://github.com/travis-ci/travis-ci/issues/9555.

Release 2.2.1

01 Apr 17:31
Compare
Choose a tag to compare

Integrates #10: ignore synthetic fields

<dependency>
    <groupId>io.florianlopes</groupId>
    <artifactId>spring-mvc-test-utils</artifactId>
    <version>2.2.1</version>
    <scope>test</scope>
</dependency>

Release 2.2.0

24 Feb 16:43
Compare
Choose a tag to compare

Integrates #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>

Release 2.0.0

21 Apr 14:22
Compare
Choose a tag to compare

Integrates #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

Release 1.0.2

13 Apr 04:24
Compare
Choose a tag to compare

Integrates #2

Release 1.0.1

14 Oct 13:45
Compare
Choose a tag to compare
  • Update outdated dependencies
  • Update README: add MockMvc usage