Skip to content

Commit

Permalink
Aggiunta configurazione per annotazione scheduled nei test.
Browse files Browse the repository at this point in the history
criluc committed Mar 19, 2024
1 parent d5b5408 commit d962f2b
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ public void evictAllCaches() {
cacheManager.getCacheNames().stream()
.forEach(cacheName -> cacheManager.getCache(cacheName).clear());
}

@Scheduled(fixedRateString = "${caching.spring.timeDetailTypes}")
public void evictAllcachesAtIntervals() {
evictAllCaches();
4 changes: 3 additions & 1 deletion src/test/resources/application.properties
Original file line number Diff line number Diff line change
@@ -10,4 +10,6 @@ epas.password=timesheet

# Utilizzata per autenticare le chiamate REST a questo servizio
security.username=epas.timesheet
security.password=timesheet
security.password=timesheet

caching.spring.timeDetailTypes=60000

0 comments on commit d962f2b

Please sign in to comment.