From 6e35e80de46605d6a3562c8d536696c1df42944a Mon Sep 17 00:00:00 2001 From: zhangliang Date: Tue, 24 Sep 2024 12:04:08 +0800 Subject: [PATCH] Add more test cases on ShardingSphereDataNode --- .../metadata/persist/node/ShardingSphereDataNodeTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/ShardingSphereDataNodeTest.java b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/ShardingSphereDataNodeTest.java index 50cc068f06dd6..4d25421694a74 100644 --- a/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/ShardingSphereDataNodeTest.java +++ b/kernel/metadata/core/src/test/java/org/apache/shardingsphere/metadata/persist/node/ShardingSphereDataNodeTest.java @@ -130,4 +130,9 @@ void assertGetRowUniqueKeyHappyPath() { void assertGetRowUniqueKeyUniqueKeyNotFoundScenario() { assertThat(ShardingSphereDataNode.getRowUniqueKey("/statistics/databases/db_name/schemas/db_schema/tables/tbl_name"), is(Optional.empty())); } + + @Test + void assertGetJobPath() { + assertThat(ShardingSphereDataNode.getJobPath(), is("statistics/job")); + } }