File tree 3 files changed +2
-8
lines changed
main/java/com/exadel/etoolbox/linkinspector/core/services/data/impl
test/java/com/exadel/etoolbox/linkinspector/core
3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ public void deleteDataFeed() throws DataFeedException {
188
188
removePreviousDataFeed (serviceResourceResolver );
189
189
removeCsvReport (serviceResourceResolver );
190
190
removePendingNode (serviceResourceResolver );
191
- clearCacheList ();
191
+ clearStaticDataFeed ();
192
192
serviceResourceResolver .commit ();
193
193
} catch (PersistenceException e ) {
194
194
LOG .error ("Failed to delete data feed" , e );
@@ -205,7 +205,7 @@ private synchronized void setGridResourcesList(List<GridResource> gridResources)
205
205
GRID_RESOURCE_COPY_ON_WRITE_ARRAY_LIST .addAll (gridResources );
206
206
}
207
207
208
- private synchronized void clearCacheList () {
208
+ private synchronized void clearStaticDataFeed () {
209
209
GRID_RESOURCE_COPY_ON_WRITE_ARRAY_LIST .clear ();
210
210
}
211
211
Original file line number Diff line number Diff line change 62
62
class DataFeedServiceImplTest {
63
63
private static final String GRID_RESOURCES_GENERATOR_FIELD = "gridResourcesGenerator" ;
64
64
private static final String RESOURCE_RESOLVER_FACTORY_FIELD = "resourceResolverFactory" ;
65
- private static final String GRID_RESOURCES_CACHE_FIELD = "gridResourcesCache" ;
66
65
private static final String REPOSITORY_HELPER_FIELD = "repositoryHelper" ;
67
66
private static final String LINK_HELPER_FIELD = "linkHelper" ;
68
67
private static final String CONFIG_FIELD = "configService" ;
Original file line number Diff line number Diff line change 16
16
17
17
import com .exadel .etoolbox .linkinspector .core .services .data .DataFeedService ;
18
18
import com .exadel .etoolbox .linkinspector .core .services .data .impl .DataFeedServiceImpl ;
19
- import com .exadel .etoolbox .linkinspector .core .services .data .models .GridResource ;
20
19
import com .exadel .etoolbox .linkinspector .core .services .helpers .LinkHelper ;
21
20
import com .exadel .etoolbox .linkinspector .core .services .helpers .PackageHelper ;
22
21
import com .exadel .etoolbox .linkinspector .core .services .helpers .RepositoryHelper ;
29
28
import com .exadel .etoolbox .linkinspector .core .services .resolvers .InternalLinkResolverImpl ;
30
29
import com .exadel .etoolbox .linkinspector .core .services .util .CsvUtil ;
31
30
import com .fasterxml .jackson .databind .ObjectMapper ;
32
- import com .google .common .cache .Cache ;
33
- import com .google .common .cache .CacheBuilder ;
34
31
import com .google .common .collect .ImmutableMap ;
35
32
import io .wcm .testing .mock .aem .junit5 .AemContext ;
36
33
import io .wcm .testing .mock .aem .junit5 .AemContextExtension ;
62
59
import java .io .IOException ;
63
60
import java .io .OutputStream ;
64
61
import java .util .*;
65
- import java .util .concurrent .CopyOnWriteArrayList ;
66
- import java .util .concurrent .TimeUnit ;
67
62
import java .util .function .BiConsumer ;
68
63
69
64
import static org .junit .jupiter .api .Assertions .*;
You can’t perform that action at this time.
0 commit comments