jhipster / jhipster-lite

JHipster Lite ⚡ is a development platform to generate, develop & deploy modern web applications & microservices architecture, step by step - using Hexagonal Architecture :gem:
https://lite.jhipster.tech
Apache License 2.0
463 stars 212 forks source link

Do not exist methods test case for CacheConfiguration class #5775

Closed medoer closed 1 year ago

medoer commented 1 year ago

The CacheConfiguration class just a @Configuration with a EnableCaching annotation. But have two test class use its methods.

image image
pascalgrimaud commented 1 year ago

@medoer : can you provide the step you used? at least which modules did you use, so I can try to reproduce the issue

medoer commented 1 year ago

OK, I will try and give you the step later.

medoer commented 1 year ago

@medoer : can you provide the step you used? at least which modules did you use, so I can try to reproduce the issue

I try and find that when i supported both ehcache-java-config and spring-boot-cache, the CacheConfiguration will be cleared.

medoer commented 1 year ago

.hipster/modules/hisotry.json

{ "actions" : [ { "module" : "init", "date" : "2023-03-27T13:34:58.193913Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "maven-java", "date" : "2023-03-27T13:34:58.225338Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "java-base", "date" : "2023-03-27T13:34:58.239758Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "spring-boot", "date" : "2023-03-27T13:34:58.281200Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "ehcache-java-config", "date" : "2023-03-27T13:34:58.306741Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } }, { "module" : "spring-boot-cache", "date" : "2023-03-27T13:34:58.328374Z", "properties" : { "packageName" : "com.mycompany.myapp", "projectName" : "JHipster Sample Application", "baseName" : "jhipsterSampleApplication", "endOfLine" : "lf", "indentSize" : 2 } } ] }

pascalgrimaud commented 1 year ago

Thanks @medoer, now I understand Indeed, there is a bug with Spring Boot Cache. For now, you need to choose only 1: spring boot cache or ehcache-java-config Not both

medoer commented 1 year ago

OK.