diff --git a/src/test/java/com/zeekling/cn/package-info.java b/src/test/java/com/zeekling/cn/package-info.java new file mode 100644 index 0000000..a14a81f --- /dev/null +++ b/src/test/java/com/zeekling/cn/package-info.java @@ -0,0 +1 @@ +package com.zeekling.cn; \ No newline at end of file diff --git a/src/test/java/com/zeekling/cn/rocksdb/RocksDbLoadTest.java b/src/test/java/com/zeekling/cn/rocksdb/RocksDbLoadTest.java new file mode 100644 index 0000000..25f1065 --- /dev/null +++ b/src/test/java/com/zeekling/cn/rocksdb/RocksDbLoadTest.java @@ -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); + } + +} diff --git a/src/test/java/com/zeekling/cn/string/RegexTest.java b/src/test/java/com/zeekling/cn/string/RegexTest.java new file mode 100644 index 0000000..9e34bb4 --- /dev/null +++ b/src/test/java/com/zeekling/cn/string/RegexTest.java @@ -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); + } + +}