1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 // This source code is licensed under both the GPLv2 (found in the 3 // COPYING file in the root directory) and Apache 2.0 License 4 // (found in the LICENSE.Apache file in the root directory). 5 6 package org.rocksdb; 7 8 import org.junit.Test; 9 10 public class ClockCacheTest { 11 12 static { RocksDB.loadLibrary()13 RocksDB.loadLibrary(); 14 } 15 16 @Test newClockCache()17 public void newClockCache() { 18 final long capacity = 1000; 19 final int numShardBits = 16; 20 final boolean strictCapacityLimit = true; 21 try(final Cache clockCache = new ClockCache(capacity, 22 numShardBits, strictCapacityLimit)) { 23 //no op 24 } 25 } 26 } 27