]>
Commit | Line | Data |
---|---|---|
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 | ||
6 | package org.rocksdb; | |
7 | ||
8 | import org.junit.Test; | |
9 | ||
10 | import static org.assertj.core.api.Assertions.assertThat; | |
11 | ||
12 | public 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 | } |