]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/java/src/test/java/org/rocksdb/CompactionOptionsFIFOTest.java
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / rocksdb / java / src / test / java / org / rocksdb / CompactionOptionsFIFOTest.java
CommitLineData
7c673cae
FG
1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2// This source code is licensed under the BSD-style license found in the
3// LICENSE file in the root directory of this source tree. An additional grant
4// of patent rights can be found in the PATENTS file in the same directory.
5
6package org.rocksdb;
7
8import org.junit.Test;
9
10import static org.assertj.core.api.Assertions.assertThat;
11
12public class CompactionOptionsFIFOTest {
13
14 static {
15 RocksDB.loadLibrary();
16 }
17
18 @Test
19 public void maxTableFilesSize() {
20 final long size = 500 * 1024 * 1026;
21 try(final CompactionOptionsFIFO opt = new CompactionOptionsFIFO()) {
22 opt.setMaxTableFilesSize(size);
23 assertThat(opt.maxTableFilesSize()).isEqualTo(size);
24 }
25 }
26}