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.rules.ExternalResource; 9 10 /** 11 * Resource to load the RocksDB JNI library. 12 */ 13 public class RocksNativeLibraryResource extends ExternalResource { 14 @Override 15 protected void before() { 16 RocksDB.loadLibrary(); 17 } 18 } 19