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

This commit is contained in:
Bipin kumar
2024-02-13 08:15:52 +01:00
committed by GitHub
parent 886b58550b
commit 9bb86532eb
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -86,6 +86,7 @@
<properties>
<aspectj-plugin.version>1.14.0</aspectj-plugin.version>
<java.version>16</java.version>
</properties>
</project>
@@ -1,5 +1,6 @@
package com.baeldung.joinpoint;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -21,6 +22,10 @@ public class JoinPointAroundCacheAspectIntegrationTest {
@Autowired
private ArticleService articleService;
@Before
public void removeCache() {
JoinPointAroundCacheAspect.CACHE.clear();
}
@Test
public void shouldPopulateCache() {
assertTrue(JoinPointAroundCacheAspect.CACHE.isEmpty());