添加rocksdb初始化代码 #2
1
src/test/java/com/zeekling/cn/package-info.java
Normal file
1
src/test/java/com/zeekling/cn/package-info.java
Normal file
@ -0,0 +1 @@
|
|||||||
|
package com.zeekling.cn;
|
15
src/test/java/com/zeekling/cn/rocksdb/RocksDbLoadTest.java
Normal file
15
src/test/java/com/zeekling/cn/rocksdb/RocksDbLoadTest.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package com.zeekling.cn.rocksdb;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.rocksdb.RocksDB;
|
||||||
|
|
||||||
|
public class RocksDbLoadTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void rocksdbLoad() {
|
||||||
|
RocksDB.loadLibrary();
|
||||||
|
RocksDB.Version version = RocksDB.rocksdbVersion();
|
||||||
|
System.out.println(version);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
16
src/test/java/com/zeekling/cn/string/RegexTest.java
Normal file
16
src/test/java/com/zeekling/cn/string/RegexTest.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package com.zeekling.cn.string;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class RegexTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testRegex() {
|
||||||
|
String regex = "test//";
|
||||||
|
String replaceAll = regex.replaceAll("[^a-zA-Z0-9\\-]", "_");
|
||||||
|
Assert.assertTrue("test__".equalsIgnoreCase(replaceAll));
|
||||||
|
System.out.println(replaceAll);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user