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 import static org.assertj.core.api.Assertions.assertThat;
11 
12 
13 public class WALRecoveryModeTest {
14 
15   @Test
getWALRecoveryMode()16   public void getWALRecoveryMode() {
17     for (final WALRecoveryMode walRecoveryMode : WALRecoveryMode.values()) {
18       assertThat(WALRecoveryMode.getWALRecoveryMode(walRecoveryMode.getValue()))
19           .isEqualTo(walRecoveryMode);
20     }
21   }
22 }
23