Skip to content

Commit

Permalink
Fixing gradle build
Browse files Browse the repository at this point in the history
Signed-off-by: Sagar Upadhyaya <[email protected]>
  • Loading branch information
sgup432 committed Jul 16, 2024
1 parent 5e179dc commit 925bd8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1125,15 +1125,15 @@ public void testEhcacheWithStorageSizeZero() throws Exception {
}

public void testEhcacheCloseWithDestroyCacheMethodThrowingException() throws Exception {
EhcacheDiskCache ehcacheDiskCache = new MockEhcahceDiskCache(createDummyBuilder(null));
EhcacheDiskCache<String, String> ehcacheDiskCache = new MockEhcahceDiskCache(createDummyBuilder(null));
PersistentCacheManager cacheManager = ehcacheDiskCache.getCacheManager();
doNothing().when(cacheManager).removeCache(anyString());
doNothing().when(cacheManager).close();
doThrow(new RuntimeException("test")).when(cacheManager).destroyCache(anyString());
ehcacheDiskCache.close();
}

class MockEhcahceDiskCache extends EhcacheDiskCache {
static class MockEhcahceDiskCache extends EhcacheDiskCache<String, String> {

public MockEhcahceDiskCache(Builder<String, String> builder) {
super(builder);
Expand Down

0 comments on commit 925bd8d

Please sign in to comment.