We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test compilation failure:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project jhipster: Compilation failure: Compilation failure: [ERROR] /C:/dev/workspace/jhipster/tests/mn-mvn-jwt-angular/src/test/java/com/mycompany/myapp/web/rest/LabelResourceIT.java:[165,9] cannot find symbol [ERROR] symbol: variable labelService [ERROR] location: class com.mycompany.myapp.web.rest.LabelResourceIT [ERROR] /C:/dev/workspace/jhipster/tests/mn-mvn-jwt-angular/src/test/java/com/mycompany/myapp/web/rest/LabelResourceIT.java:[210,9] cannot find symbol [ERROR] symbol: variable labelService [ERROR] location: class com.mycompany.myapp.web.rest.LabelResourceIT
Generate an entity with serviceClass or serviceImpl value for service option.
Always save the test entity with the entity repository, no need to conditionally use the entity service.
entityName.json
.jhipster
{ "name": "Label", "fields": [ { "fieldName": "label", "fieldType": "String", "fieldValidateRules": ["required", "minlength"], "fieldValidateRulesMinlength": "3" } ], "relationships": [ { "relationshipType": "many-to-many", "otherEntityName": "operation", "otherEntityRelationshipName": "label", "relationshipName": "operation", "otherEntityField": "id", "ownerSide": false } ], "changelogDate": "20201020221801", "entityTableName": "label", "dto": "no", "pagination": "no", "service": "serviceClass", "jpaMetamodelFiltering": false, "fluentMethods": true, "readOnly": false, "embedded": false, "clientRootFolder": "", "applications": ["jhipster"] }
The text was updated successfully, but these errors were encountered:
Fix test compilation failure when using serviceClass or serviceImpl (#…
db8a9ad
…201) Fixes #197
Successfully merging a pull request may close this issue.
Overview of the issue
Test compilation failure:
Reproduce the error
Generate an entity with serviceClass or serviceImpl value for service option.
Related issues
Suggest a Fix
Always save the test entity with the entity repository, no need to conditionally use the entity service.
Project configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: