[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
3 changed files with 8 additions and 2 deletions
@@ -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());