spring-data-mock: Doesn't work with Spring Boot 2.0

I migrated from spring boot 1.5.6.RELEASE to 2.0.5.RELEASE. And every tests with redis-repository stoped to working with error:

java.lang.IllegalStateException: Could not find property `id` on `class my.app.service.domain.model.Entity`

I just remove library and start to use @MockBean for my repository and it works as well.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 18 (18 by maintainers)

Most upvoted comments

Yeah. I have deployed 2.0.0 to central, so we should be able to use it. But I had to make modifications to the build mechanism that I need to push upstream.

Just import 2.0.0 to one of our services on java 11, spring boot 2.2.6.RELEASE. And it works like a charm 🍸 Many thanks 😄

Thank you to @binakot who helped clean up this issue and took care of the incompatibilities. I will be closing this now, and track the progress of automating the release once more in a separate issue.

There were several problems:

  1. In the audit-related tests, we needed to truncate the instant to milliseconds for tests to pass on all target JDKs,
  2. maven-javadoc-plugin has a known issue with JDK 11,
  3. The PGP tool used to sign the build has changed now it reads from stdin, so, it was stuck during the auto-release process waiting for user input in a non-TTY environment,
  4. As you pointed out, the repositories for testng and gemfire need to be removed.

Yeah. I have deployed 2.0.0 to central, so we should be able to use it. But I had to make modifications to the build mechanism that I need to push upstream.