test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CacheStrategyImplTest.java
test_class.identifier: CacheStrategyImplTest
test_case.body: @Test
      public void testThresholdIsRefresh() {
          long maxSize = 10;
          long maxPaths = 5;
          CacheStrategy cs = new CacheStrategyImpl(ConfigurationParameters.of(
                  EAGER_CACHE_SIZE_PARAM, maxSize,
                  EAGER_CACHE_MAXPATHS_PARAM, maxPaths), true);
  
          for (long cnt : new long[] {Long.MIN_VALUE, 0L, 1L, 10L-1}) {
              assertTrue(cs.loadFully(maxPaths-1, cnt));
              assertTrue(cs.loadFully(maxPaths, cnt));
              assertFalse(cs.loadFully(maxPaths+1, cnt));
          }
  
          for (long cnt : new long[] {10L, 1000L, Long.MAX_VALUE}) {
              assertFalse(cs.loadFully(maxPaths-1, cnt));
              assertFalse(cs.loadFully(maxPaths, cnt));
              assertFalse(cs.loadFully(maxPaths+1, cnt));
          }
      }
test_case.class_method_signature: CacheStrategyImplTest.testThresholdIsRefresh()
test_case.full_signature: @Test public void testThresholdIsRefresh()
test_case.identifier: testThresholdIsRefresh
test_case.invocations: of assertTrue loadFully assertTrue loadFully assertFalse loadFully assertFalse loadFully assertFalse loadFully assertFalse loadFully
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testThresholdIsRefresh()
focal_class.declarator: EAGER_CACHE_SIZE_PARAM = "eagerCacheSize"
focal_class.modifier: static final
focal_class.original_string: static final String EAGER_CACHE_SIZE_PARAM = "eagerCacheSize";
focal_class.type: String
focal_class.var_name: EAGER_CACHE_SIZE_PARAM
focal_class.declarator: DEFAULT_SIZE = 250
focal_class.modifier: private static final
focal_class.original_string: private static final long DEFAULT_SIZE = 250;
focal_class.type: long
focal_class.var_name: DEFAULT_SIZE
focal_class.declarator: EAGER_CACHE_MAXPATHS_PARAM = "eagerCacheMaxPaths"
focal_class.modifier: static final
focal_class.original_string: static final String EAGER_CACHE_MAXPATHS_PARAM = "eagerCacheMaxPaths";
focal_class.type: String
focal_class.var_name: EAGER_CACHE_MAXPATHS_PARAM
focal_class.declarator: DEFAULT_MAX_PATHS = 10
focal_class.modifier: private static final
focal_class.original_string: private static final long DEFAULT_MAX_PATHS = 10;
focal_class.type: long
focal_class.var_name: DEFAULT_MAX_PATHS
focal_class.declarator: maxSize
focal_class.modifier: private final
focal_class.original_string: private final long maxSize;
focal_class.type: long
focal_class.var_name: maxSize
focal_class.declarator: maxPaths
focal_class.modifier: private final
focal_class.original_string: private final long maxPaths;
focal_class.type: long
focal_class.var_name: maxPaths
focal_class.declarator: threshold
focal_class.modifier: private final
focal_class.original_string: private final long threshold;
focal_class.type: long
focal_class.var_name: threshold
focal_class.declarator: fullyLoaded = true
focal_class.modifier: private
focal_class.original_string: private boolean fullyLoaded = true;
focal_class.type: boolean
focal_class.var_name: fullyLoaded
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/permission/CacheStrategyImpl.java
focal_class.identifier: CacheStrategyImpl
focal_class.interfaces: implements CacheStrategy
focal_class.class_method_signature: CacheStrategyImpl.CacheStrategyImpl(ConfigurationParameters options, boolean isRefresh)
focal_class.full_signature:   CacheStrategyImpl(ConfigurationParameters options, boolean isRefresh)
focal_class.identifier: CacheStrategyImpl
focal_class.parameters: (ConfigurationParameters options, boolean isRefresh)
focal_class.signature:  CacheStrategyImpl(ConfigurationParameters options, boolean isRefresh)
focal_class.class_method_signature: CacheStrategyImpl.maxSize()
focal_class.full_signature: @Override public long maxSize()
focal_class.identifier: maxSize
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long maxSize()
focal_class.class_method_signature: CacheStrategyImpl.loadFully(long numEntriesSize, long cnt)
focal_class.full_signature: @Override public boolean loadFully(long numEntriesSize, long cnt)
focal_class.identifier: loadFully
focal_class.modifiers: @Override public
focal_class.parameters: (long numEntriesSize, long cnt)
focal_class.return: boolean
focal_class.signature: boolean loadFully(long numEntriesSize, long cnt)
focal_class.class_method_signature: CacheStrategyImpl.usePathEntryMap(long cnt)
focal_class.full_signature: @Override public boolean usePathEntryMap(long cnt)
focal_class.identifier: usePathEntryMap
focal_class.modifiers: @Override public
focal_class.parameters: (long cnt)
focal_class.return: boolean
focal_class.signature: boolean usePathEntryMap(long cnt)
focal_method.body: @Override
      public boolean loadFully(long numEntriesSize, long cnt) {
          if (numEntriesSize <= maxPaths && cnt < threshold) {
              return true;
          } else {
              fullyLoaded = false;
              return false;
          }
      }
focal_method.class_method_signature: CacheStrategyImpl.loadFully(long numEntriesSize, long cnt)
focal_method.full_signature: @Override public boolean loadFully(long numEntriesSize, long cnt)
focal_method.identifier: loadFully
focal_method.modifiers: @Override public
focal_method.parameters: (long numEntriesSize, long cnt)
focal_method.return: boolean
focal_method.signature: boolean loadFully(long numEntriesSize, long cnt)