| | |
| | | |
| | | // Initialize the cache. |
| | | super.cache = new FIFOEntryCache(); |
| | | super.cache.initializeEntryCache(configuration); |
| | | super.cache.initializeEntryCache(TestCaseUtils.getServerContext(), configuration); |
| | | |
| | | // Make some dummy test entries. |
| | | super.testEntriesList = new ArrayList<>(super.NUMTESTENTRIES); |
| | |
| | | super.testClearBackend(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Test |
| | | @Override |
| | | public void testClearSubtree() |
| | | throws Exception |
| | | { |
| | | super.testClearSubtree(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Test |
| | | @Override |
| | |
| | | "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + |
| | | cache.toVerboseString()); |
| | | |
| | | String b = |
| | | TestCaseUtils.getServerContext().getBackendConfigManager().getLocalBackend(DN.valueOf("o=test")).getBackendID(); |
| | | String b = TestCaseUtils.getServerContext().getBackendConfigManager() |
| | | .findLocalBackendForEntry(DN.valueOf("o=test")).getBackendID(); |
| | | |
| | | for(int i = 0; i < super.NUMTESTENTRIES; i++ ) { |
| | | super.cache.putEntry(super.testEntriesList.get(i), b, i); |
| | |
| | | "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + |
| | | cache.toVerboseString()); |
| | | |
| | | String b = |
| | | TestCaseUtils.getServerContext().getBackendConfigManager().getLocalBackend(DN.valueOf("o=test")).getBackendID(); |
| | | String b = TestCaseUtils.getServerContext().getBackendConfigManager() |
| | | .findLocalBackendForEntry(DN.valueOf("o=test")).getBackendID(); |
| | | |
| | | for(int i = 0; i < super.NUMTESTENTRIES; i++ ) { |
| | | super.cache.putEntry(super.testEntriesList.get(i), b, i); |