You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional note: #10686 moved entities domain/service layer tests from web.rest layer to domain/service layer but missed moving User entity tests from web.rest layer to doamin layer:
To provide all information we need, you should run jhipster info in the project root folder (or workspaces root for microservices), and
copy/paste the result here. jhipster info removes sentitive information like rememberKey, jwtSecretKey. Double check if there is any other sensitive info.
As alternative you can add a JDL wrapped in below structure
JDL definitions
JDL content here
The information is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using jhipster from-issue command.
Browsers and Operating System
Checking this box is mandatory (this is just to show you read everything)
The text was updated successfully, but these errors were encountered:
Overview of the issue
#10686 moved Entity and DTO tests away from
web.rest
layer but relatedTestUtil
remained inweb.rest
layer.generator-jhipster/generators/java/generators/domain/templates/src/test/java/_package_/_entityPackage_/domain/_persistClass_Test.java.ejs
Line 34 in 0fe9a40
generator-jhipster/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/service/dto/_dtoClass_Test.java.ejs
Line 23 in 0fe9a40
Additional note: #10686 moved entities domain/service layer tests from web.rest layer to domain/service layer but missed moving
User
entity tests fromweb.rest
layer todoamin
layer:generator-jhipster/generators/spring-boot/templates/src/test/java/_package_/_entityPackage_/web/rest/UserResourceIT.java.ejs
Line 894 in 0fe9a40
Motivation for or Use Case
domain
andservice
layers should not depend onweb.rest
layerReproduce the error
Related issues
Suggest a Fix
TestUtil
from web.rest to tests rootDomainTestUtil
,ServiceTestUtil
and renameTestUtil
toRestTestUtil
User
entity tests in wrong package solution: extractUser
entity tests fromweb.rest
layer todomain
layer as this was done for entities in refactor entity's integration test class #10686JHipster Version(s)
Current main branch, version 8.7.1
JHipster configuration
To provide all information we need, you should run
jhipster info
in the project root folder (or workspaces root for microservices), andcopy/paste the result here.
jhipster info
removes sentitive information like rememberKey, jwtSecretKey. Double check if there is any other sensitive info.As alternative you can add a JDL wrapped in below structure
JDL definitions
The information is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using
jhipster from-issue
command.Browsers and Operating System
The text was updated successfully, but these errors were encountered: