Closed mraible closed 5 years ago
Here's the generated constructor for BlogResource
:
public BlogResource(BlogRepository blogRepository, BlogSearchRepository blogSearchRepository, UserRepository userRepository) {
this.blogRepository = blogRepository;
this.blogSearchRepository = blogSearchRepository;
this.userRepository = userRepository;
}
While the generated BlogResourceIntTest
has the search repository as the 2nd argument:
final BlogResource blogResource = new BlogResource(blogRepository, userRepository, mockBlogSearchRepository);
Seems like a missing condition somewhere. I think we need to test things better before merging PRs and also may be cover more cases in CI
Thanks & Regards, Deepu
On Thu, Oct 18, 2018 at 5:18 PM Matt Raible notifications@github.com wrote:
Here's the generated constructor for BlogResource:
public BlogResource(BlogRepository blogRepository, BlogSearchRepository blogSearchRepository, UserRepository userRepository) { this.blogRepository = blogRepository; this.blogSearchRepository = blogSearchRepository; this.userRepository = userRepository; }
While the generated BlogResourceIntTest has the search repository as the 2nd argument:
final BlogResource blogResource = new BlogResource(blogRepository, userRepository, mockBlogSearchRepository);
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jhipster/generator-jhipster/issues/8602#issuecomment-431049846, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDlFxIkYfhhecCovOJdcSld63xKtxDKks5umJurgaJpZM4Xsok9 .
My bad guys, I knew that my refactor will cause some issues and I did not test correctly.
Overview of the issue
A JDL that works with 5.4.2 no longer works with 5.5.0. Here's the JDL:
With 5.5.0, when I run
./mvnw package -Pprod jib:dockerBuild
in theblog
app's directory, I get a compile error:Motivation for or Use Case
Demo fear.
Reproduce the error
Use the JDL above with
jhipster import-jdl apps.jdl
with 5.5.0. It will fail when you try to build Docker containers. It works when you use 5.4.2.JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "1.8.0_181" OpenJDK Runtime Environment (Zulu 8.31.0.1-macosx) (build 1.8.0_181-b02) OpenJDK 64-Bit Server VM (Zulu 8.31.0.1-macosx) (build 25.181-b02, mixed mode)
git version 2.17.1 (Apple Git-112)
node: v8.11.3
npm: 6.4.1
yeoman: 2.0.5
yarn: 1.10.1
Docker version 18.06.1-ce, build e68fc7a
docker-compose version 1.22.0, build f46880f