[JAVA-30541] - Enable back spring-aop module (#15791)
This commit is contained in:
parent
886b58550b
commit
9bb86532eb
4
pom.xml
4
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -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>
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue