[JAVA-30541] - Enable back spring-aop module (#15791)

This commit is contained in:
Bipin kumar 2024-02-13 12:45:52 +05:30 committed by GitHub
parent 886b58550b
commit 9bb86532eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -822,7 +822,7 @@
<module>spring-actuator</module> <module>spring-actuator</module>
<module>spring-ai</module> <module>spring-ai</module>
<module>spring-aop-2</module> <module>spring-aop-2</module>
<!--<module>spring-aop</module>--><!-- JAVA-30541 --> <module>spring-aop</module>
<module>spring-batch-2</module> <module>spring-batch-2</module>
<module>spring-batch</module> <module>spring-batch</module>
<module>spring-boot-modules</module> <module>spring-boot-modules</module>
@ -1063,7 +1063,7 @@
<module>spring-actuator</module> <module>spring-actuator</module>
<module>spring-ai</module> <module>spring-ai</module>
<module>spring-aop-2</module> <module>spring-aop-2</module>
<!--<module>spring-aop</module>--><!-- JAVA-30541 --> <module>spring-aop</module>
<module>spring-batch-2</module> <module>spring-batch-2</module>
<module>spring-batch</module> <module>spring-batch</module>
<module>spring-boot-modules</module> <module>spring-boot-modules</module>

View File

@ -86,6 +86,7 @@
<properties> <properties>
<aspectj-plugin.version>1.14.0</aspectj-plugin.version> <aspectj-plugin.version>1.14.0</aspectj-plugin.version>
<java.version>16</java.version>
</properties> </properties>
</project> </project>

View File

@ -1,5 +1,6 @@
package com.baeldung.joinpoint; package com.baeldung.joinpoint;
import org.junit.Before;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -21,6 +22,10 @@ public class JoinPointAroundCacheAspectIntegrationTest {
@Autowired @Autowired
private ArticleService articleService; private ArticleService articleService;
@Before
public void removeCache() {
JoinPointAroundCacheAspect.CACHE.clear();
}
@Test @Test
public void shouldPopulateCache() { public void shouldPopulateCache() {
assertTrue(JoinPointAroundCacheAspect.CACHE.isEmpty()); assertTrue(JoinPointAroundCacheAspect.CACHE.isEmpty());